标签:-- test 监听 UNC complete loader getch progress get
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS,loading);//添加进度监听;
this.loaderInfo.addEventListener(Event.COMPLETE,loaded);//添加进度完成监听;
function loading(eve)
{
var loadpre:int = eve.bytesLoaded / eve.bytesTotal * 100;
txt.text = "影片载入" + loadpre + " %";
}
//显示进度载入百分比-----
function loaded(eve)
{
txt.text = "影片载入完毕!";
if (framesLoaded == totalFrames)
{
removeChild(this.getChildAt(0));
nextFrame();
}
}
标签:-- test 监听 UNC complete loader getch progress get
原文地址:https://www.cnblogs.com/fengziwu/p/11406334.html