I'm starting to get really pissed with this one! I have some simple code I wrote to determine what percentage of my Flash movie is loaded, and all I want to do is display a little progress bar, but for some reason it's not working. Neither the progress bar nor the text box displayed above it are being updated. Here's the code:
The progress bar takes the percentage loaded times 2.21 because 221 is the max width I want. The TipText text box sets itself to 1% but doesn't change again until 100%, and the progress bar stays at 0.55 width and doesn't change again until 221 width. This is very confusing and frustrating.. any ideas PLEASE
Code:
ifFrameLoaded(120) {
//gotoAndPlay(4);
}
var loaded = Math.floor((_root._framesloaded / 120) * 100);
_root.ProgBar._width = loaded * 2.21;
_root.TipText.text = loaded + "%";