Hello, I am making an animated preload in AS2.
I have made 100 frames, and each frame does something different. I am no programmer, but I was wondering if there was a code to make it so that each percent that goes up, the animation would continue.
Please help me out, I'm trying to make the best preloader ever!
Here is my code:
This code is on the main timeline, not inside the movieclip
stop();
onLoad = function() {
total = _root.getBytesTotal()
loaded = 0
}
loading_bar.onEnterFrame = function() {
loaded = _root.getBytesLoaded()
loading_bar.gotoAndStop(percent);
percent = loaded/total*100
}
The movieclip which contains the animation is the instance of loading_bar.