/ Published in: ActionScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
onSelfEvent (load) { total = _root.getBytesTotal(); percent = 80; } onSelfEvent (enterFrame) { loaded = _root.getBytesLoaded(); //percent = int(loaded/total*100); percent++; loading_text.text = percent+"%"; loading_box.gotoAndStop(percent); if (percent == '100') { _root.gotoAndPlay(2); } } onFrame (1) { stop(); }
Comments
