0 Replies Latest reply on Sep 14, 2007 9:31 AM by slmille4

    extending events in AS 2.0?

    slmille4
      I'm trying to extend the Tween class so that it will notify a parent when it is finished with a tween, but I'm not sure how to properly register the onMotionFinished event. The code I'm using is:

      import mx.transitions.Tween;
      class TweenItem extends Tween {
      var parent:ColorSelector;
      function setParent(parent){
      this.parent = parent;
      }
      function onMotionFinished () {
      this.yoyo();
      this.stop();
      this.parent.flagFinished();
      }
      }