Change registration point with AS

Hi everyone,
I’m new here, and I start with a question: how could I change the registration point of a movie clip created or loaded at runtime?
I want to move the registration point from top/left to center.

Thx.

Later edit: I want to do this with Actionscript, for a movie entirely created with a script.

hey! welcome to the forums! i used to be a “thor” once :wink:

anyway, to move the registration point of a movieclip, simply go into edit mode and move the entire object so that the crosshair in the middle is at where you want it registered.

only for Flash MX
for future reference, when making a new movieclip (F8), you may notice a small array of blocks (9 to be exact) with the middle one darkened. this means that the registration point is in the middle. you can change that by simply clicking on the appropriate square that you want the object registered to.

Your best bet is to put that clip inside another clip, and move the inside clip’s position and the container clip’s position reversly to simulate a changing registration point.

There are a few flas at www.bit-101.com/lab.html about that. bit called it rigid body physics :slight_smile: