Groups | Blog | Home
all groups > flash actionscript > august 2007 >

flash actionscript : Can I change the registration point of a movie clip?


amir.saad
8/23/2007 9:12:45 PM
I'm loading a movie clip dynamically and its registration point defaults to top-left corner. I need to change it to the center, is this possible? if so, how?
kglad
8/23/2007 9:36:48 PM
it's not possible. but you can fake it.

amir.saad
8/23/2007 9:43:34 PM
kglad
8/23/2007 9:45:47 PM
amir.saad
8/23/2007 10:29:02 PM
Thank you. I tried that and it didn't work too. Please check this code:
loader.loadClip(_global.image_url+this["image1"], image1);
DynamicRegistration.initialize(image1);
image1.setRegistration( 20, 20);

What is wrong with it?
kglad
8/24/2007 12:19:54 AM
AddThis Social Bookmark Button