Flash AS3.0 ローダー


stop();
var info : LoaderInfo = root.loaderInfo;
root.addEventListener(Event.ENTER_FRAME,EnterFrameFunc);

function EnterFrameFunc(event){
var per:uint =Math.floor(info.bytesLoaded / info.bytesTotal * 100)
trace(per)
if(info.bytesLoaded == info.bytesTotal){
trace("comp");
root.removeEventListener(Event.ENTER_FRAME,EnterFrameFunc);
}
}

メモ書き