/ Published in: ActionScript 3
Add the code at the first frame.
Expand |
Embed | Plain Text
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(); } }
You need to login to post a comment.
