6 Replies Latest reply on Sep 28, 2009 12:40 PM by Rootle

    Using button to increase line length (an easy one!)

    Rootle Level 1

      Hi I want to attach some script to a button that will increase the length of a line (movieclip) by x amount each time.

       

      I have tried using this :

       

      on (press){

      this.line._xscale=this.line._xscale+5

      }

       

      ..which work, but also scales up the y value of the line. How can I A) lock one end of the line in position, and B) stop the y value of the line changing?

       

      Thanks! R.