Return to Snippet

Revision: 11368
at February 3, 2009 12:39 by chrisaiv


Initial Code
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);
    }
}

Initial URL
http://blog.hydrotik.com/2007/10/01/as3-useful-little-things/

Initial Description
As always, IE7 is stupid

Initial Title
AS3: Handle Preloaders in ie7

Initial Tags

                                

Initial Language
ActionScript 3