Skip to main content
oluc
Known Participant
March 11, 2010
Answered

Tween back to original position?

  • March 11, 2010
  • 1 reply
  • 589 views

Do you know how to rewind a tween. but I dont want it to just snap back to the beiginning. I want it to yoyo back to the beingining without actually yoyoing many times. you know what I mean?

this is the code I have which make the beginning motion I want:

public function imageSelectR(e:MouseEvent):void {

myTween = new Tween(imageLoaderHost, "z", Regular.easeInOut, 0, -100, 1, true);

myTween.addEventListener(TweenEvent.MOTION_FINISH, imageSelectL);

public function imageSelectL(e:TweenEvent):void {

myTween.????();

//what goes there?

}

Thanks for any help!

This topic has been closed for replies.
Correct answer Ned Murphy

I'm not sure if this is too snappy for what you want but...

myTween = new Tween(imageLoaderHost, "z", Elastic.easeOut, 100, 0, 1, true);

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
March 11, 2010

I'm not sure if this is too snappy for what you want but...

myTween = new Tween(imageLoaderHost, "z", Elastic.easeOut, 100, 0, 1, true);

oluc
olucAuthor
Known Participant
March 11, 2010

Thanks Ned! What you suggested worked perfectly with the value at -100 and Strong.easeInOut. : )