# MovieClip changes height

**URL:** <https://forum.kirupa.com/t/movieclip-changes-height/308630>\
**Category:** flash\
**Created:** [April 27, 2010, 11:36am UTC](https://forum.kirupa.com/t/movieclip-changes-height/308630 "2010-04-27T11:36:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krazycat](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@krazycat](https://forum.kirupa.com/u/krazycat)\
**Post date:** [April 27, 2010, 11:36am UTC](https://forum.kirupa.com/t/movieclip-changes-height/308630/1 "2010-04-27T11:36:15Z")

</div>

I have a weird problem. I create a movieclip, and place it in another movieclip, which is placed on stage. In the first MC I have a button, and when I push this button the movieclips height suddenly changes!?

I don’t have any code that will change the height, and I don’t add or remove anyting that will effect the height.

```auto

function addProduct(e:MouseEvent):void {

var cartProduct_mc:MovieClip = new MovieClip();

.........
.........

var del_btn:Button = new Button();
del_btn.label = "Delete";
del_btn.addEventListener(MouseEvent.CLICK, preDeleteProduct);
cartProduct_mc.addChild(del_btn);

cart_mc.addChild(cartProduct_mc);
trace(cartProduct_mc.height); // This returns 185
    
}

function preDeleteProduct(e:MouseEvent):void {
    var this_mc:MovieClip = e.target.parent;
    trace(this_mc.height); // This returns 107????

........
........
}

```
