4 Replies Latest reply on May 18, 2007 4:25 PM by ionic77

    migrating custom AS 2 easing formula to AS 3

    ionic77
      hey all,

      i've got an AS 2 easing formula that targets a clip above it. but i can't figure out how to make it work in AS 3. flash says that _parent doesn't work anymore? is this script capable of being re-written for AS 3 or do i have to start from scratch?

      thanks for your help!

      var baseRate:Number = 3.5
      var difference:Number = _parent.targetx - _parent.panel._x;
      var rate:Number = difference / baseRate
      _parent.panel._x += rate;