I’ve been reading a Flash help book, and it tries to explain how you can use Action script to create a preloader that will play a movie clips frames based on the amount of bytes loaded. I can’t seem to get it to work. Here is the code:
stop();
myInterval = setInterval(preloader,10);
function preloader() {
if (getBytesLoaded()>=getBytesTotal()) {
play();
clearInterval(myInterval);
}
myMovieClip.gotoAndStop(Math.round(_framesloaded/_totalframes*(myMovieClip._totalframes)));
}
This is on the first frame of my movie. I’ve also have a stop action on the first frame of my movie clip.
I’m pretty sure that is right… See if that works… It says… While the myMovieClip is running and the currentframes != totalframes… Chekc and see if anymore movie is loaded… If not… stop here… if so… play til it is. Someone double chekc me on this one.