ActionScript Tween Yoyo Stops!
Posted
by TheDarkIn1978
on Stack Overflow
See other posts from Stack Overflow
or by TheDarkIn1978
Published on 2010-05-29T07:06:48Z
Indexed on
2010/05/29
7:12 UTC
Read the original article
Hit count: 314
actionscript-3
|tween
i want my tween to yoyo until the program is closed, but for some reason my tween is only "yoyoed" about 10 times before it just stops. is this normal?
var myTween:Tween = new Tween(boxSprite, "alpha", Regular.easeInOut, 1, 0.25, 1, true);
myTween.addEventListener(TweenEvent.MOTION_FINISH, yoyo, false, 0, true);
function yoyo(evt:TweenEvent):void
{
evt.target.yoyo();
}
© Stack Overflow or respective owner