【发布时间】:2011-10-26 09:23:32
【问题描述】:
我在我的 Flex 应用程序中使用了一些效果...它们都在 mxml 标记中声明... 例如:
<mx:Fade id="fadeIn" alphaTo="1" duration="500"/>
<mx:Fade id="fadeOut" alphaTo="0" duration="500"/>
<mx:Move id="moveEffect" duration="500"/>
<mx:Rotate id="rotateEffect" duration="500"/>
通常,当我触发一些效果时,如果有任何效果正在播放,我想禁用所有交互,所以我想知道除了动作脚本之外还有其他方法可以检查这些东西
if (!fadeIn.isPlaying && !fadeOut.isPlaying && !moveEffect.isPlaying && !rotateEffect.isPlaying)
非常感谢您的帮助!
【问题讨论】:
标签: actionscript-3 apache-flex flex3 mxml effects