Preloader working, audio starts on video but preloader still shows
Posted on 2006-05-08
It's been long and long since I worked with Flash, and this one has me stumped. This seems to be worse when it's on my server, but it's still reproducible locally. I have a Flash file that loads external .swfs (all videos) into a Loader component. I have a preloader that uses getBytesLoaded() and getBytesTotal() to both update itself and to determine when the movie gets to play. So far, so good. Unfortunately, it might be showing only 5 or 10% loaded, but the audio starts on the video! Still can't see the video itself until the preloader hits 100%. I've tried changing the threshold for when the movie should start playing, but it doesn't make a difference: audio still starts way before the preloader is complete, and it doesn't want to hide early either.
I tried using the ProgressBar component with the same results.
Any idea what I can do to keep the movie clip loaded into the Loader from starting until I say so?