帮我看看这个代码 怎么能不在 下载模式预览 进度条就可以 使用
stop();
root.loaderInfo.addEventListener(ProgressEvent.PROGRESS,loadProgress,false,0,true)
root.loaderInfo.addEventListener(Event.COMPLETE,init,false,0,true)
function loadProgress(e:ProgressEvent):void{
var m:int=int(e.bytesLoaded/e.bytesTotal*100);
lotxt.text="Loading:"+String(m)+"%";
this.jdt.gotoAndStop(m);
play_btn.visible=false;
}
function init(e:Event):void{
gotoAndStop(2);
play_btn.visible=true;
}
function playMovie(event:MouseEvent):void
{
gotoAndPlay(1,"场景 2");
}
play_btn.addEventListener(MouseEvent.CLICK,playMovie);