1 Reply Latest reply on Aug 19, 2007 9:03 PM by kglad

    Positioning movie clips with AS

    asiabackpacker Level 1
      I'm using the following code to position some text clips on the stage. But the weird thing is, the clips positions come out differently than if I position them manually from within Flash.

      For example, if I set the Y position of a clip to 250 in the Properties Inspector, it comes out to be positioned at 250, but if I even write in the code textBox._y = 250, it comes out differently (about 10 pixels above 250).

      Anyone have any idea what I'm talking about, or what's going on here?

      Thanks!


      //space out the text clips

      for ( i=2 ; i<8 ; i++ ){
      textClipName = "text" + i;

      this[textClipName]._y = ((i-1) * 250);

      }