Click to See Complete Forum and Search --> : FlashMX Preloader problem??


02design
12-01-2005, 05:30 PM
Help! I am loading a submovie into in my host movie. I set my preloading animation in the first 60 frames of the submovie, the rest of the movie plays in frame 61.(correct so far?) Then I added a "stop(); waiting = true" in frame 1 of my preloader(loader starts on frame2). This is all in my submovie.
In my host movie I have a button with actionscript attached:
on (release) {
loadMovie("submovie.swf", "theClip");
}
Holder (on the host movie,"theClip") has:
onClipEvent (enterFrame) {
percent = Math.floor(_framesloaded/totalframes*100);
if (waiting == true && percent == 100) {
play();
waitng = false;
}
}
When I test my movie it is stuck on frame one and reads "Infinity." What am I doing wrong?? Is there an easier way to do this??

deep.dhyani
12-02-2005, 12:15 AM
it should be:

Math.floor(_framesloaded/_totalframes*100);