五 312009
原文:Another Reason to Love TweenLite
从Google Reader中看到这边文章的确被雷到了,的确是好方法。
而通常来说,如果我们要在某一特定时间后执行某一方法需要一个Timer。但是原文的博主采用了一个比较奇妙的方法,使用了TweenLite巧妙地实现了此功能。
TweenLite.delayedCall(0.5, myFunction, [param1,param2]);
原文:Another Reason to Love TweenLite
从Google Reader中看到这边文章的确被雷到了,的确是好方法。
而通常来说,如果我们要在某一特定时间后执行某一方法需要一个Timer。但是原文的博主采用了一个比较奇妙的方法,使用了TweenLite巧妙地实现了此功能。
TweenLite.delayedCall(0.5, myFunction, [param1,param2]);
自从出了tweenlite,貌似一直用这个方法做定时器
@ 虎子哥:这个用法的确很奇妙,又很好用
setTimeout(my_delayedFunction, 2000, “two second delay”);
flash的setTimeout 就可以的!