Simple flash preloader
Simple flash preloader
Out of context: Reply #2
- Started
- Last post
- 4 Responses
- mydo0
place this on the first frame with nothing else except a textbox called loadtxt. done. :)
total = this.getBytesTotal();
ploaded = this.getBytesLoaded();
loadtxt.text = "";
this.onEnterFrame = function() {
ploaded = this.getBytesLoaded();
loadtxt.text = "LOADING "+Math.floor((ploaded/total)*100...
if (ploaded == total) {
this.onEnterFrame = null;
_root.nextFrame(); // or play
}
};- AS 2.0fyoucher1
- AS2 oh and you can get away with removing line 2 and 3 !mydo
- Errors in the code. Nice.CygnusZero4
- how anoying it cut off the end of line 6
mydo