I’ve made an animation with 100 frames. I’m using CS3 and AS2 by the way.
I want to use this animation as a preloader so that as each percent preloaded, the animation moves on one frame. So far I’ve worked out this much:
Loaded = Math.round(getBytesLoaded());
Total = Math.round(getBytesTotal());
PctValue = Loaded/Total;
PctLoaded = Math.round(PctValue*100)+"%";
if (Loaded == Total) {
gotoAndPlay(“Portfolio”,1);
} else {
anim.gotoAndStop(PctLoaded);
gotoAndPlay(1);
}
This script is on frame 2. The animation with 100 frames is called “anim”.
From all I’ve read, this should work, but it’s not having any success. Is there anyone who can help me?