# Can't get height of image inside an mc

**URL:** https://forum.kirupa.com/t/cant-get-height-of-image-inside-an-mc/302007
**Category:** Uncategorized
**Created:** [December 19, 2009, 1:10pm UTC](https://forum.kirupa.com/t/cant-get-height-of-image-inside-an-mc/302007 "2009-12-19T13:10:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![maxelcat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/maxelcat/32/2854_2.png) [@maxelcat](https://forum.kirupa.com/u/maxelcat)
#### Post date: [December 19, 2009, 1:10pm UTC](https://forum.kirupa.com/t/cant-get-height-of-image-inside-an-mc/302007/1 "2009-12-19T13:10:40Z")

</div>

HI

I am trying to get at the properties (eg height) of an jpeg that I have loaded into a movieclip at runtime. Here’s the code

```auto

 
var introImageHolder:MovieClip = new MovieClip();
:
:
  var j =new Loader();
  j.load(new URLRequest(imgUrl));
  introImageHolder.addChild(j)
  introImageHolder.x=245;
  introImageHolder.y=108;

```

Sadly whilst the image loads correctly if I try  
trace (introImageHolder.height) I get 0, which is odd - I would have thought that the mc would take on the size of its contents, but I guess I am missing something! Also trace (introImageHolder.j.height) throws errors

How do I get at the height of the image please?

Thanks

E
