5 Replies Latest reply on Dec 4, 2007 12:51 PM by kglad

    motion tween using scripting

    3-Putt Level 1
      I have this working, which moves a picture of a horizon starting at the left edge of my document and slowly moves off the scene to the left. Question is, How can I tile the same picture together where the left edge meets the right edge so it appears to be a seamless ongoing horizon made up of just the one picture?

      Any ideas?
      thx

      var endX = horizon._x + 70;
      var stepX = (endX - horizon._x) / 50;

      horizon.onEnterFrame = function ()
      {
      if (this._x < endX) this._x -= stepX;

      };