var myload:Loader=new Loader(); var url:URLRequest=new URLRequest("1.swf"); myload.load(url); emptyMc.addChild(myload); myload.contentLoaderInfo.addEventListener(Event.COMPLETE,loadfun); function loadfun(event:Event) { myload.contentLoaderInfo.removeEventListener(Event.COMPLETE,loadfun); var loadmc=myload.content; loadmc.gotoAndStop(2); trace(loadmc.totalFrames); }
原文地址:https://www.cnblogs.com/zqiang0803/p/9603556.html
时间: 2024-11-07 04:16:46