我试图将 Swf 文件嵌入我的Flex 应用程序, 并附上一些框架标签, 并在时间轴中定义这些标签 :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1000" height="563" creationComplete="doSomething()">
<mx:Script>
<![CDATA[
private var movieClip:MovieClip;
private function doSomething():void {
movieClip = swfFile.content as MovieClip;
movieClip.gotoAndPlay( playIntro );
movieClip.addEventListener("swfFinished", doSomethingElse);
}
private function doSomethingElse():void {
//
}
]]>
</mx:Script>
<mx:SWFLoader id="swfFile" width="1000" height="563" source="@Embed(source= test.swf )" />
</mx:Application>
但是,我无法以这种方式控制swf时间线...
谢谢!