all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

Flash Preview Window - Help


Flash Preview Window - Help grob
2/24/2004 11:40:52 PM
flash actionscript:
I have a movie that contains a streaming audio file.
I have a preloader movie in frame 1, the audio movie instance on frame 2.
I do not want to stop the file until the Preload is complete, instead, I am
hoping that as soon as there is enough audio streamed, the movie will
advance to frame 2.

However, when previewing in Flash (with Show Streaming) the movie delays on
frame 1 until the audio is fully loaded before advancing to frame 2. Is
someone able to explain why Flash is not advancing to frame 2 when
sufficient audio is buffered?

Here is the script I am using in my Preloader movie (frame 1):

onClipEvent (load) {
this.topScale = this._width;
this._xscale = 0;
ft = int(_root.getBytesTotal()/1024);
}
onClipEvent (enterFrame) {
fl = int(_root.getBytesLoaded()/1024);
this._xscale = (fl/ft)*this.topScale;
_parent.mytext.text = "["+fl+" Kb of "+ft+" Kb]";
if (fl == ft) {
_root.loadbar.slide._visible = false;
_root.loadbar.loadingtxt._visible = false;
}
}



Thanks
Geoff

Re: Flash Preview Window - Help grob
2/25/2004 9:22:47 AM
Is the Flash Preview (ctrl+Enter) unable to simulate audio streaming
buffering? Why is the audio having to completely load before playing?

Thanks
Geoff

AddThis Social Bookmark Button