/ Published in: ActionScript 3
Add the code at the first frame.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import flash.display.*; stop(); loaderInfo.addEventListener(ProgressEvent.PROGRESS, plLoading); function plLoading(event:ProgressEvent):void { var pcent:int=event.bytesLoaded/event.bytesTotal; trace(pcent); if (pcent>=1) { loaderInfo.removeEventListener(ProgressEvent.PROGRESS, plLoading); // LOADED! //nextScene(); } }