swf loading 自身

stop();
import flash.net.URLRequest;
import caurina.transitions.Tweener;

loaderInfo.addEventListener(Event.OPEN, thisOpen);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, thisPro);
loaderInfo.addEventListener(Event.COMPLETE,thisCom);


//開始载入
function thisOpen(e){
	loadTxt.text = "0 %";
}

//载入进度
function thisPro(event:ProgressEvent):void{
	loadTxt.text = "" + Math.round(event.bytesLoaded / event.bytesTotal * 100) + " %";
}

//载入完毕
function thisCom(event:Event):void
{
	loadTxt.text = "";
	gotoAndStop(2);
}

原文地址:https://www.cnblogs.com/llguanli/p/7345301.html