Action Script 3 :: Get Sounds Total Time And Current Time?

Nov 18, 2009

i have a player in flash action 3. i need to take a the total time of the sound file and current time of the sound file. how can i code like this.

function onPlayProgress(evt:Event):void {
var sndLength:int = Math.ceil(snd.length /(snd.bytesLoaded / snd.bytesTotal));
var seekbar = 100 * (channel.position / sndLength);

[Code].....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Get Total Time And Time Played From Flash Video Component?

Jul 6, 2009

I've loaded a video into the FLVPlayback component and I'm looking for a way to get the total time and the time played so far and output them to two text fields so the end result would look something like "00:12/00:50".

Right now I'm defining the video by the components inspector but I'm eventually hoping to define this bit by actionscript as well.

View 6 Replies

ActionScript 2.0 :: Display Total Time And Elapsed Time Of A Fla (not Flv)

Nov 6, 2011

developing custom video player for my fla files.. i made few flash slides with combination of audio,text,animations, and video files.(for a e learning project).. the player which i made is a blend of few sample tutorials available on online... now my problem is how to display the total movie length of the movie in a dynamic text box using as2..

View 6 Replies

ActionScript 2.0 :: Get Total Time And Time Left?

Jun 1, 2009

how can i show my total time and time left of Movie Clip in text field.

View 6 Replies

ActionScript 2.0 :: Set Up Time To Show Greenwich Current Time?

Sep 7, 2002

how do you set up time to show Greenwich current time?

yes, i do know how to show the visitor's current time...

View 7 Replies

ActionScript 2.0 :: Modifiy The Global Trace Function To Output The Current Time Of A Trace Action

Nov 9, 2011

I've been playing with prototype a bit and I've noticed that either it isn't as static as it should be or that some functions are protected from altering, or that in some cases the prototype actually extends a function. For example, I was trying to modifiy the global trace function to output the current time of a trace action, something like this :

Code:trace("lulu"); // output 12:48:17.286 lulu I DID achieve something close to it, but it seems that I haven't actually modified the global trace function, but rather it's "_root" counterpart,

[Code]...

View 3 Replies

ActionScript 1/2 :: How To Display FLV Total Time

Jul 9, 2009

I am loading a flv video in AS2:
var conexion:NetConnection = new NetConnection();
conexion.connect(null);var stream:NetStream = new NetStream(conexion);
mi_video.attachVideo(stream);
stream.play("motto.flv");
this.onEnterFrame = function() {
[Code] .....

It works very good, In this line, I get de current time of the flv:
timer_txt.text = ((integer.length<2) ? "0"+integer : integer)+":"+((decimal.length<2) ? "0"+decimal : decimal)
And I need to display the total time too. By the way, I am not using the any flv component, I need to play the video in a custom player....

View 1 Replies

Media Server :: Get Total Time Of Streaming Flv?

Apr 4, 2011

using old AS2 code on an fms project.it seems that both server-side NetStream object and client-side NetStream object do not have a totalTime property.my goal is to determine when the flv has completed playing ( has reached the end  visually );so I figured that comparing time to totalTime would work but there appears to not be a totalTime.

View 3 Replies

Flash :: Find The Total Time Of An Mp3 Before Is Downloaded?

Nov 25, 2010

How can I find the total time of an mp3 before it is fully downloaded? I have this function which is called on TimerEvent.TIMER

[Code]...

The problem is tha the totalTime is correct only when the mp3 is fully downloaded..

View 2 Replies

Actionscript 3.0 :: Display Duration And Total Time In HH:MM:SS?

Feb 19, 2008

I need this to work so that on my stage i can have a dynamic text box displaying the current time of the flv and the total time ---- example 3:45 / 6:58 where the 3:45 would update as the flv was scrubbed or played, or whenever a jump point was pressed. I found an example of this on this page.I have been using the as3 code to import my video and use cue points and for the life of me I cant get this to work.

View 14 Replies

IDE :: Total Running Time In Audio Skin

Aug 10, 2009

I'm using an mp3player skin, but the running time won't work (bottom of code)--it stays at "0:00" when you hit play. Everything else is working fine.[code]

View 1 Replies

ActionScript 3.0 :: Get The Total Time Elapsed Displayed On The Stage?

Dec 24, 2010

I have a programme that will count each second that has elapsed from one key press to another, in the output panel I get all the times this has happened (each second) but would like the total number displayed in a text box on the stage at the end.  This will be the total delay between key presses.

View 7 Replies

ActionScript 3.0 :: Audio Total Time Before Sound Complete

Oct 19, 2011

I have tried this too but the value keeps on changing as the sound load progresses.

View 3 Replies

Actionscript 3.0 :: MP3 Player Elapsed Time / Total Duration

Jul 24, 2009

I'm trying to modify an mp3 player to work on my site, and I can't seem to get it to display time elapsed and total duration. I've included the .fla file below so you can see it (keep in mind that the mp3 file it loads, and the title are both passed to it through the link, i.e. "mp3player.html?audlink=test.mp3&audtitle=This+Is+The+Title").

[Code]...

View 2 Replies

ActionScript 3.0 :: FLVPlayback Skin Displayhead / Total Time Text Modification

Apr 7, 2011

I want to separate the time_txt inside the counter_mc into two objects. One displaying just the displayheadTime and the other the totalTime. I want to do this on the skin file. What my problem is I can't seem to find the part where the text is being set at all. I am using CS5/FlvPlayback 2.5.

View 1 Replies

Actionscript 3.0 :: Get Elapsed/Total Time Dynamic Text Boxes Into A Flash Skin Template

Feb 29, 2008

How do I get my Elapsed/Total Time dynamic text boxes into a flash skin template. I put the boxes in the skin and have the code to make it work on my main stage yet it doest do anything. When i put the text boxes on the stage it works...

View 3 Replies

ActionScript 2.0 :: Load 2 Or More Sounds To Play At The Same Time?

Feb 23, 2005

Can I use attachSound method to load 2 or more sounds to play at the same time? If yes, how?

View 2 Replies

Get The Current Time As Either A String Or A Number?

Jun 12, 2006

Does anyone know an url where I can get the current time as either a string or a number? Or how do I solve the problem that flash can't create an external time? Or does anybody have a
perl-file that they wouldn't mind sharing with me that could do the trick

View 2 Replies

Flash :: Current Time Plus 30 Minutes?

Mar 29, 2010

im really new to flash, how do i go about creating a variable which will get the current date and time and add 30 minutes to it ?

View 2 Replies

ActionScript 3.0 :: Using Current Time In If Statements?

Oct 12, 2010

I have no problem getting the current minute using the .getMinutes command, but I would like to use that number in an if statement:

ActionScript Code:
if(minute>=30)
doSomething();
else
doSomethingElse

View 4 Replies

ActionScript 2.0 :: Current Date And Time?

Sep 30, 2005

Does anyone have a script for current date?? like for example todays date i nthis format: December 15, 2005

View 14 Replies

ActionScript 2.0 :: Current Time Plus 5 Minutes?

Jul 20, 2007

I've checked the forum a couple times, couldn't find an answer.this file gets local time, and then adds 5 minutes to it, problem is that when the minutes gets to 60 it continues because it's getting the actual time from the first time and just adding 5 to it

View 2 Replies

ActionScript 3.0 :: Optimization On Load Time (Large Images And Sounds)

Jan 27, 2011

I have an all flash website that works by having each portion of it to load and unload in the center of a frame based off the navigation chosen.Load times on everything but one part of my site are ok.The dimensions of the part inside the frame are 968x674.I know that's relatively large for a flash file, but that can't be changed at this point.Within the page there are objects that come up when you find an item on the screen.Its a dialog box and it shows text, an image, and has a voice over that reads what the text says.After you're done looking at it, there is an x-button to dismiss the window.There are 15 of these and they are exported to the actionscript.I add them in the actionscript via addChild.
 
The other huge thing is there is a ton on the screen.It starts you off in an environment, and when you click 3 different sections, it zooms into that portion allowing you to look for the items you're trying to find.There is also a man that talks and animates in the beginning and at the end.We are planning on taking out the end part and putting a text box up. URL...The two parts of the site we are trying to optimize is the main menu when you first are at the site, and the "Explore" section.(Just click on the cloud on the front page.

View 2 Replies

ActionScript 3.0 :: Muting Or Stopping Time Line Sounds Of A MovieClip?

Jul 30, 2010

I'm doing a project that has a lot of time line animation.There are 5 buttons. Each one plays a multi-frame MovieClip containing sounds embedded in its timeline.Then there is a button that stops any of the playing movie clips. Of course, this doesn't stop the soundsormally, I'd just use...ActionScript Code:SoundMixer.SoundTransform.stopAll();Problem is, I also have non-timeline sounds that I have playing on a loop for background music, and the SoundMixer would stop the music too. But I don't want the music to stop.Doing some research, I think any MovieClip can have a SoundTransform property you can adjust, so I should be able to control the sounds just inside specific MovieClips. But I can't figure it out.

View 1 Replies

ActionScript 2.0 :: Looping Sounds Multiple Times (time Dependant)

Apr 8, 2004

Ok say for example I have a sound of a bell chime. I want to play this sound independent of the mainstage and have it key off local system time. So naturally I want to have my sound loop twice at 2am/pm and eleven times at 11am/pm etc.

View 3 Replies

ActionScript 2.0 :: Looping Sounds Multiple Times (time Dependant)?

Apr 8, 2004

Ok say for example I have a sound of a bell chime. I want to play this sound independent of the mainstage and have it key off local system time. So naturally I want to have my sound loop twice at 2am/pm and eleven times at 11am/pm etc.

View 3 Replies

ActionScript 2.0 :: Use AttachSound Method To Load 2 Or More Sounds To Play At The Same Time?

Feb 23, 2005

Can I use attachSound method to load 2 or more sounds to play at the same time? If yes, how?

View 2 Replies

ActionScript 2.0 :: Make Some Action Happens After Some Time?

Jul 1, 2005

how to make some action happens after some time ?I mean... imagine I have a ball moving randomly through the stage.... I want that... the ball stays on it's place for some time... then move to somehwere else.... stay there a while.... en repeat.

View 1 Replies

ActionScript 2.0 :: Current Time As Static Variable?

Oct 7, 2008

I've been trying to create a script that pulls the current time and turns it into a variable, the problem is the variable keeps updating as the time changes, where as I need it to remain static as the time that is was when the variable was first created...it's just a simple:

Code:

var theTime = today.getTime();

View 2 Replies

ActionScript 2.0 :: Display The Current Time Dynamically?

Aug 23, 2003

I've got this code that displays the time but, I want the time to display dynamically, updated by the user's sytem clock so it always displays the "current time".

myNow=new Date();
myDay=myNow.getDay();
myMonth=myNow.getMonth();
myDate=myNow.getDate();

[code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved