# Get width of loaded image (MovieClipLoader)

**URL:** <https://forum.kirupa.com/t/get-width-of-loaded-image-moviecliploader/179993>\
**Category:** flash\
**Created:** [February 24, 2006, 3:52pm UTC](https://forum.kirupa.com/t/get-width-of-loaded-image-moviecliploader/179993 "2006-02-24T15:52:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rasper](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Rasper](https://forum.kirupa.com/u/Rasper)\
**Post date:** [February 24, 2006, 3:52pm UTC](https://forum.kirupa.com/t/get-width-of-loaded-image-moviecliploader/179993/1 "2006-02-24T15:52:55Z")

</div>

Hi people

I’m loading an external .jpg, and try to reposition it according to the size. Problem is, I can’t seem to get the width or height of the image loaded :puzzle:.

Here’s my code:

```auto
var loadImageListener:Object = new Object();
var imageLoader:MovieClipLoader = new MovieClipLoader();
imageLoader.addListener(loadImageListener);
imageLoader.loadClip("image.jpg", mc_holder);
loadImageListener.onLoadComplete = function(){
 trace(mc_holder.width);
};

```

this will result in an output 0. How come? (note that it does NOT say ‘undefined’ or ‘null’ in the output, just 0)
