Return to Snippet

Revision: 8072
at September 1, 2008 18:01 by sebastianassaf


Initial Code
stop();

this.addEventListener(Event.ENTER_FRAME, loading);

function loading(e:Event):void {

var total:Number = this.stage.loaderInfo.bytesTotal;
var loaded:Number = this.stage.loaderInfo.bytesLoaded;

if (total == loaded) {

play();
this.removeEventListener(Event.ENTER_FRAME, loading);

}

}

Initial URL
http://www.oman3d.com/tutorials/flash/basicwebsite/

Initial Description

                                

Initial Title
Oman3D - Simple Preloader

Initial Tags

                                

Initial Language
ActionScript 3