Actionscript 3 flex swfLoader显示问题
我对flex 4.6 web应用程序上的swfLoader有问题。 我将外部SWF文件(大小=2.21 KB)加载到swfLoader。 swf只包含一个60帧的简单时间线动画,看起来像一个倒计时计时器。它在所有帧中都有基本圆,并根据帧编号填充 在Internet Explorer中,它可以正常工作。 在Firefox和Chrome中,它加载文件(到达完整事件),但在开始时部分显示文件,大约需要一分钟才能完全显示对象(例如,完整的圆圈)。此外,如果我在加载过程中放大,它也可以正常工作并显示整个内容 你能帮我解决吗??我已经试着修了将近两天了Actionscript 3 flex swfLoader显示问题,actionscript-3,apache-flex,swfloader,Actionscript 3,Apache Flex,Swfloader,我对flex 4.6 web应用程序上的swfLoader有问题。 我将外部SWF文件(大小=2.21 KB)加载到swfLoader。 swf只包含一个60帧的简单时间线动画,看起来像一个倒计时计时器。它在所有帧中都有基本圆,并根据帧编号填充 在Internet Explorer中,它可以正常工作。 在Firefox和Chrome中,它加载文件(到达完整事件),但在开始时部分显示文件,大约需要一分钟才能完全显示对象(例如,完整的圆圈)。此外,如果我在加载过程中放大,它也可以正常工作并显示整个内
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
[Bindable]
public var MC:MovieClip;
public var timerC:Timer = new Timer(1000);
public var cou:int = 1;
protected function countDownAnimation_completeHandler(event:Event):void
{
MC = MovieClip(countDownAnimation.content);
MC.gotoAndStop(1);
timerC.addEventListener(TimerEvent.TIMER,timerTick);
timerC.start();
}
protected function timerTick(event:TimerEvent):void
{
cou++;
if(cou == 61){
cou=1;
}
MC.gotoAndStop(cou);
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:SWFLoader id="countDownAnimation"
source="assets/images/tradebox/timerAnimation.swf"
minWidth="23" minHeight="27"
scaleContent="true"
complete="countDownAnimation_completeHandler(event)"
/>
谢谢 为什么不让动画直接播放,而不是显式地转到每一帧?因为我想控制动画的速度(后面会有另一个逻辑)