展开全部
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.display.MovieClip;
import flash.events.Event;
var loader:Loader =new Loader();
loader.loaderInfo.addEventListener(Event.COMPLETE, onLoaderCompleteHandel);
function onLoaderCompleteHandel(evt:Event):void
{
btn = (evt.target as LoaderInfo).content as MovieClip;
addChild(btn);
}
希望对你有帮助,还有不明白的,请追问
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询