# Scale Moveclip from center registration

**URL:** <https://forum.kirupa.com/t/scale-moveclip-from-center-registration/308856>\
**Category:** flash\
**Created:** [May 1, 2010, 10:14pm UTC](https://forum.kirupa.com/t/scale-moveclip-from-center-registration/308856 "2010-05-01T22:14:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcambron](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@tcambron](https://forum.kirupa.com/u/tcambron)\
**Post date:** [May 1, 2010, 10:14pm UTC](https://forum.kirupa.com/t/scale-moveclip-from-center-registration/308856/1 "2010-05-01T22:14:00Z")

</div>

Greetings,

I am using a slider component to scale a movie clip. Currently it scales from the bottom right corner (I guess this is default). I would like the MC to scale out from the center. Any help provided would be greatly appreciated.

Best,  
JTC

Current Code

// slider

slider.addEventListener(SliderEvent.CHANGE, scaleObject);  
slider.minimum = 1;  
//setting default slider thumb’s position  
sliderpent.value = 5;  
sliderpent.liveDragging = true;

// scaling functon

function scaleObject(e:SliderEvent):void{  
holder\_mc.scaleX = e.target.value / 5;  
holder\_mc.scaleY = e.target.value / 5;  
}
