3 Replies Latest reply on Jan 7, 2008 1:03 AM by Greg Dove

    Changing Registration point of a Movieclip

    R@j
      I have created a rectangle with the following code:

      this.createEmptyMovieClip("square_mc", 1);
      square_mc.beginFill(0xFF0000);
      square_mc.moveTo(0, 0);
      square_mc.lineTo(100, 0);
      square_mc.lineTo(100, 100);
      square_mc.lineTo(0, 100);
      square_mc.lineTo(0, 0);
      square_mc.endFill();

      Now, I want to change its registration point from top-left corner to its center using ActionScript code....
      Can anyone tell me how to do this?... any idea guys???