11 Replies Latest reply on Jun 3, 2007 5:56 PM by kglad

    Converting some old script

      Hi I'm only an occasional flash user and I've built up a library of scripts as my knowledge is minimal. My question is: could someone help me convert one small piece of old ActionScript as I need it to work in Flash Player 7 or higher at the moment it only works with 6. I'm using CS3 and AS2.
      This is the code in two parts.
      Frame action:
      Movieclip.prototype.elasticMove = function(target, accel, convert) {
      step = step*accel+(target-this._x)*convert;
      this._x += step;

      Movie Clip/Button action:
      onClipEvent (enterFrame) {
      elasticMove(_root.newX, 0.4, 0.2);
      onClipEvent (load) {
      _root.newX = -1680.0;

      It basically just allows a movie clip's position on the stage to be set with an elastic and easing action.

      Thanks for any help.