/ Published in: ActionScript 3
As always, IE7 is stupid
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
this.addEventListener("enterFrame",onEnterFrame); function onEnterFrame(e:Event) { loadbar.width = (this.loaderInfo.bytesLoaded/this.loaderInfo.bytesTotal)*200; if (this.loaderInfo.bytesLoaded == this.loaderInfo.bytesTotal) { gotoAndPlay(2); this.removeEventListener("enterFrame", onEnterFrame); } }
URL: http://blog.hydrotik.com/2007/10/01/as3-useful-little-things/