# Scale9grid error for left scale

**URL:** <https://forum.kirupa.com/t/scale9grid-error-for-left-scale/300925>\
**Category:** flash\
**Created:** [November 30, 2009, 5:50pm UTC](https://forum.kirupa.com/t/scale9grid-error-for-left-scale/300925 "2009-11-30T17:50:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trezbo\_d](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@trezbo\_d](https://forum.kirupa.com/u/trezbo_d)\
**Post date:** [November 30, 2009, 5:50pm UTC](https://forum.kirupa.com/t/scale9grid-error-for-left-scale/300925/1 "2009-11-30T17:50:16Z")

</div>

I have an MC with the registration point set to the Top Right so it will scale down and left:

function dragMC(e:Event){  
my\_mc.width = Stage.width - mouseX;  
my\_mc.height = mouseY;  
}

The MC i want to drag and scale has the following coords:

my\_mc.x = 636.65;  
my\_mc.y = 44.5;  
my\_mc.width = 146.1;  
my\_mc.height = 108.6;

Im getting an error because of the settings for :

var grid:Rectangle = new Rectangle(10, 10, my\_mc.width,my\_mc.height);

Can anyone spot prob what im stupidly doing wrong! 🙂

Any help comments appricated!

Trez
