Posted By

sorehead on 10/09/06


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

arala22
dazza


Coding a tween


 / Published in: ActionScript
 

  1. //Tween an object's _y property. This is within the context of a v2 Component, but the same principles also apply elsewhere. Just replace 'this' with the movie clip you want to tween.
  2.  
  3. import mx.transitions.Tween;
  4. import mx.transitions.easing.*;
  5.  
  6.  
  7. var tween = new Tween(this, "_y", Elastic.easeOut, y, yToMoveTo, 1, true);
  8. tween.onMotionFinished = mx.utils.Delegate.create(this, motionFinished);

Report this snippet  

You need to login to post a comment.