Registration point using Action Script ? it's possible something like that?

How do I set a movie clip’s registration point using Action Script.
Let’s say I want it to be in the middle.
I create my movie clip dinamical usign createEmptyMovieClip and drawing Api