Return to Snippet

Revision: 53426
at November 23, 2011 02:58 by happytogetherannie

Initial Code

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;

lbar.scaleX = loaded/total;
loader_txt.text = Math.floor((loaded/total)*100)+ "%";

if (total == loaded){
this.removeEventListener(Event.ENTER_FRAME, loading);


Initial URL

Initial Description
can solve the IE reload problem

Initial Title
flash preloader for AS3

Initial Tags

Initial Language
ActionScript 3