all groups > flash actionscript > august 2005 >
You're in the

flash actionscript

group:

changing frame nav. based on load of mp3


changing frame nav. based on load of mp3 RockinPneumonia
8/31/2005 6:35:00 PM
flash actionscript: I am soo frustrated - none of the examples in the Flash help are doing it for
me - I am loading an external event sound (.mp3 file) at the beginning of my
movie. Before I figure out progress bars, I simply want to poll whether the
file is loaded and if it is I want the playhead to continue on and if it isn't
fully loaded I want to stay in current frame until the sound is fully loaded.

I have tried examples in live docs and in other tutorials to no avail. Would
anyone be gracious enough to provide some code snippet that will work for me or
point me to a good tutorial for this? I have been at this way too long -
please help!

Thanks.
Re: changing frame nav. based on load of mp3 NSurveyor
8/31/2005 7:48:01 PM
Have you tried:

stop();
my_sound = new Sound(this);
my_sound.onLoad = function(s){
if(s){
play();
}else{
trace("Could not load");
}
}
Re: changing frame nav. based on load of mp3 RockinPneumonia
8/31/2005 8:29:04 PM
It worked like a charm...thanks for your help.

Re: changing frame nav. based on load of mp3 NSurveyor
8/31/2005 8:43:14 PM
AddThis Social Bookmark Button