1 Reply Latest reply on Feb 8, 2007 2:11 AM by ponch

    tween class - tweening from curent position

    ponch Level 1
      Hi, I've been looking at the tween classes and I was wondering how I could use it to tween an object that i already placed on the stage? So using it's current position and tweening to a new position. Is there a way of doing it by simply using a term that flash understands (eg _xPosition)?



      import mx.transitions.Tween;
      import mx.transitions.easing.*;
      new Tween(ball_mc, "_x", Elastic.easeOut, 300, 50, 3, true);
      new Tween(ball_mc, "_y", Elastic.easeOut, 100, 50, 3, true);