|
|
Question : preloading a flv movie prior to start of .swf file
|
|
hello - http://www.razorrockbeaters.com/about.htm
on this pager i have a .swf file that has a preloader, but . . .
there are 2 simple .flv movies that run in side it. I need for these to be preloaded and tracked with the same preloader I am using.
here is the code for the preloader on frame1
onClipEvent (enterFrame) { loading = _parent.getBytesLoaded(); total = _parent.getBytesTotal(); if (percent == undefined) percent = 0; percent -= (percent-((loading/total)*100))*.25; per = int(percent); percentage = per+"%"; loadBar._width = per; if (percent>99) { _parent.gotoAndPlay(3); } }
if you watch the internal movie you can see it is loading as it is playing. need some help on getting the preloader to recognize the other 2 movie files and wait until they get loaded or at least the 1st one gets loaded beofer starting the rest of the SWF file.
|
Answer : preloading a flv movie prior to start of .swf file
|
|
I am not sure if you can combine the preloader with its assets. You can preload the assets once this preloading is done using MovieClipLoader class or use loadVars (that downloads the flv on the background without interrupting your flash file)
You can run your preloader anim till half way for preloading swf and run any of the flv preloaders to complete the animation.
Links that help: http://www.askapache.com/htaccess/preload-and-cache-flash-flv-files.html http://livedocs.adobe.com/flash/9.0/main/00001036.html
Hope this helps!
|
|
|
|