# Children Scale with Parent?

**URL:** <https://forum.kirupa.com/t/children-scale-with-parent/281932>\
**Category:** flash\
**Created:** [February 15, 2009, 4:16pm UTC](https://forum.kirupa.com/t/children-scale-with-parent/281932 "2009-02-15T16:16:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThaJock](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@ThaJock](https://forum.kirupa.com/u/ThaJock)\
**Post date:** [February 15, 2009, 4:16pm UTC](https://forum.kirupa.com/t/children-scale-with-parent/281932/1 "2009-02-15T16:16:18Z")

</div>

I have a container object that i add children to. I want to change the height & width of the container without the children scaling. In this case I draw a rectangle in flash which I’ll use as the container object then export for AS.

var theContainer:Sprite = new the\_Container();  
theContainer.height = 50;  
theContainer.width = 100;

with(theContainer) {  
addChild(obj1)  
addChild(obj2)  
}

The problem is that obj1 & obj2 will scale. I assume it’s because I have changed it’s parent’s height & width. Is there any way around this?
