frames loaded gives a skewed reading since you may have 500k in the first one and 20k in the next. You need to use the _getBytesLoaded property divided by the _getBytesTotal property as in the following example:
This action would go on frame 1
Total = getBytesTotal();
Loaded = getBytesLoaded();
Percent = int((Loaded/Total)*100)+"%";
if (Total==Loaded) {
gotoAndStop ("Main", 1);
} else {
play ();
}
this action would go on frame 3
gotoAndPlay (1);
You then create a dynamic text box in a separate layer spread from frame 1 to frame 3 and name it Percent.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.