4 Replies Latest reply on May 24, 2007 7:30 AM by fire orchid

    Position MC

    fire orchid
      Hi,

      I have a movie clip that i want to move forward so many pixels with each click of a button. I can move it to a certain x/y co-ordinate, but i want it to move forward each time you click on the same button, by so many pixels.

      Currently my button action is:

      on (press) {
      this._parent.main.targetx =-500;
      this._parent.main.targety =410.4;
      }

      which will move the "main" mc across the stage by 500px. - great, except I want to be able to move it again and again, until it reaches a certain point and then not be able to move any more.

      does this make sense?

      i can upload the file if this will help at all.

      thanks

      :)