# Set the registration of duplicated MCs?

**URL:** <https://forum.kirupa.com/t/set-the-registration-of-duplicated-mcs/49431>\
**Category:** flash\
**Created:** [April 22, 2004, 4:59pm UTC](https://forum.kirupa.com/t/set-the-registration-of-duplicated-mcs/49431 "2004-04-22T16:59:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![meat\_chris](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@meat\_chris](https://forum.kirupa.com/u/meat_chris)\
**Post date:** [April 22, 2004, 4:59pm UTC](https://forum.kirupa.com/t/set-the-registration-of-duplicated-mcs/49431/1 "2004-04-22T16:59:28Z")

</div>

Hi, I duplicate an empty MC (mr dupeMC) then loadMovie an external swf (Alien baby). I want mr dupe MC to scale 50% to 100%, from the center, as Alien baby loads inside him…

Old mr dupe MC can scale just fine, but cause loadMovie makes the registration top left, he swells to the right and down, not from the center like I want.

Is this making sense?

I can get around it by writing this in Alien baby:

onClipEvent(load){  
\_parent.\_xscale = 50;  
\_parent.\_x=\_parent.\_x+20;  
\_parent.\_yscale = 50;  
\_parent.\_y=\_parent.\_y+20;  
}  
onClipEvent(enterFrame) {  
if (\_parent.\_xscale \<100) {  
\_parent.\_xscale++;  
\_parent.\_x=\_parent.\_x-(18/50);  
\_parent.\_yscale++;  
\_parent.\_y=\_parent.\_y-(18/50);  
}  
}

(no I don’t understand the maths, but it seems to work okay)

It would be much easier (and less maths) if I can set Alien Baby’s \_x and \_y so mr dupe MC’s registration is in the center of Alien Baby.

Any ideas?

Cheers,

Chris
