I’m having trouble with a preloader. I’ve gone through many tutorials and they aren’t helping me with this specific issue. I have one movie that generates random snow in frame one. In another layer in this movie, I’m loading a swf into level 1 using LoadMovieNumb("****.swf", 1); Once this swf loads it plays the movie that was loading automatically. What I’d like to do is add a preloader counting percentage of the swf loaded. I can’t seem to get things arranged correctly and I’ve tried every configuration that I can think of. What I currently have is the loadmovienum command in frame 1. In frame 2 I have the following:
bytes_loaded = Math.round(_level1.getBytesLoaded());
bytes_total = Math.round(_level1.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.mytext.text = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndPlay(4);
}
Frame 3 has: gotoAndPlay(2);
and Frame 4 has: stop();
It seems to stick at frame 1 until the swf is loaded which negates all of my other code. Any ideas?