0
我是新的Flash,我不知道它是否可能,但我添加了一个随机的动画片段到舞台上,使用addChild,我需要在10秒后删除它们。 。我可以使用removeChild来做到这一点吗?Flash removeChild经过几秒钟
问候
我是新的Flash,我不知道它是否可能,但我添加了一个随机的动画片段到舞台上,使用addChild,我需要在10秒后删除它们。 。我可以使用removeChild来做到这一点吗?Flash removeChild经过几秒钟
问候
或者你也可以从闪存库
setTimeOut()
More Info使用默认的功能。
,并在年底将它看起来像这样:
setTimeOut (removeClip, 2000, clip);
function removeClip (clip : DisplayObject) : void
{
removeChild (clip);
}
使用Timer类。另外,TweenLite library有一个很好的函数调用TweenLite.delayedCall(secondsDelay,functionToCall)