/ Published in: ActionScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Frame 1 var total_bytes = _root.getBytesTotal(); var loaded_bytes = _root.getBytesLoaded(); percent = loaded_bytes/total_bytes; if(percent >=1) gotoAndPlay("_afterLoad"); // Frame 2 gotoAndPlay(1);