An easier way to develop a preloader for your Flash movie would be to do it this way:
On the first frame of your first scene, have your Actionscript code like this:
Code:
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
percentLoaded = (loaded/total)*100;
textPercent.text = int(percentLoaded) + "% loaded";
if (percentLoaded>=100) {
gotoAndPlay("Slideshow",1);
}
On the second frame, you need to have this bit of code:
Code:
this.gotoAndPlay(1);
I use this code all the time for my Flash movies and I will tell you that this is the easiest way there is. The textPercent.text bit is just used to display the percent loaded. Keep in mind that you need to have a dynamic text field named textPercent.
Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.
Most likely using
FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator
Welcome to the
New Age