# Component Height

**URL:** <https://forum.kirupa.com/t/component-height/287184>\
**Category:** flash\
**Created:** [April 27, 2009, 7:03pm UTC](https://forum.kirupa.com/t/component-height/287184 "2009-04-27T19:03:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colouredFunk](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@colouredFunk](https://forum.kirupa.com/u/colouredFunk)\
**Post date:** [April 27, 2009, 7:03pm UTC](https://forum.kirupa.com/t/component-height/287184/1 "2009-04-27T19:03:32Z")

</div>

Hi all,

I’m trying to get the height of a TextInput box (or any component for that matter) that is nested with in MC. When trace the height of the TextInput directly, it comes out at 22, great! But when I trace the height of the MC it’s 100pixels!!!?? See below

import fl.controls.\*  
var mc = new MovieClip()  
var textIn = new TextInput()  
mc.addChild(textIn)  
addChild(mc)  
trace(mc.height) //outputs 100  
trace(textIn.height)//outputs 22

Strange no?

Thanks
