4 Replies Latest reply on Jan 7, 2008 7:18 AM by kglad

    Tween/Easing Classes Documented

    samuel&james
      hi this is the first time i have posted so please be gentle.

      i have been working on this code and have now come to a dead end

      the project that it is used in is a wall that moves on the x axis there are several buttomn that need adding but when i add a second button in it returns to the begining and then moves to the next section can any one let me know what i need to do to get it to remember it's current x position.
      the code is below.

      home_btn.onRelease = function() {
      home(mx.transitions.easing.Bounce.easeOut);
      };
      function home(easeType) {
      var begin = this._x;
      var end = -1247;
      var time = 50;
      wallTween = new mx.transitions.Tween(this.wall, "_x", easeType, begin, end, time);
      }

      please can any one help