View Full Version : Preloading Video
doopcircus
10-30-2005, 05:38 PM
I don't know why but I can't get videos preloaded. My preloading script usually works perfectly but when I try to use it with videos everything falls apart: the video starts playing before the laoding bar has finished counting. I tried everything: importing the video directly into the clip, converting it to a movie clip, loading idvia the flash components ad through a flv file. It never works. Somebody know some possible soultions ? Thankalot ! :)
doopcircus
10-31-2005, 08:41 AM
... up ( I hope this time I will be luckier )
mambenanje
10-31-2005, 08:44 AM
hey why not put the video embeded in a movieclip set the movieclip offstage till when the bar is 100% then set the video on the stage, play with the _x and _y positions, to make it more nice u can even fade it in from 0 to appear gradually
doopcircus
10-31-2005, 09:01 AM
That's a great idea ! i would prefer a real preload of the video but at least this avoids visual conflicts between video and preloaders. Still I'm wondering why you can't preload videos: the only expolanation I could find is that the preloader script can't get the job done because of the high number of frames of the file...
Advocate
11-10-2005, 08:00 PM
I ran into this too, the movie would start playing before it was done preloading. I had assumed that it would wait until the loader.onLoadComplete() ran, but i guess not.... Anyone know why?
Anyways, heres what I did to fix it. I have a transparent "holder" clip that I load all my movies into. I added "holder.stop()" in the loader.onLoadStart() and I added "holder.play()" into loader.onLoadInit().
Essentially I halt the holder when it begins loading, then play when I know the movie is done loading. This seems like a weak circumvention, but it works i guess..... anyone else have another idea?
Also, does this mean I can load movies without having to show them till i press a button or something? (i.e. loading big movies while on an idle "choose a button" screen is showing?)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.