AudioJungle

pause tween object at a certain x coordinate

292 posts
  • Bought between 100 and 499 items
  • Has been a member for 6-7 years
  • United States
timmylogue says

How do I pause a tween object at a certain x coordinate for 15 sec and head back to the original x coordinate and pause that for 3 mins and then loop.

I was messing around with tween.yoyo();

var myTween = new Tween(myMovieClip_mc,"x",Strong.easeInOut, 500,0,1,true);

myTween.addEventListener(TweenEvent.MOTION_FINISH, onFinish);
function onFinish(e:TweenEvent):void
{
    myTween.yoyo();
}

Thanks

65 posts
  • Bought between 1 and 9 items
  • China
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 and 1 000 dollars
yuanhao_viva says
http://www.greensock.com/as/docs/tween/_tweenlite.html
this will help you.look up the TweenMax Class.i think it can do exactly what you want
4126 posts
  • Bought between 1 and 9 items
  • Brazil
  • Community Superstar
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • Sold between 5 000 and 10 000 dollars
tsafi says

I was messing around with tween.yoyo(); Thanks
If you want clients taking you seriously never use the flash default tween engine :P .

If you are not selling your work then using yuanhao_vivag tween recommendation is good way doing things ,other than that’s you can use freely Tweener or EazeTween(I still use ET) on any project free

292 posts
  • Bought between 100 and 499 items
  • Has been a member for 6-7 years
  • United States
timmylogue says

Thanks guys!

by
by
by
by
by