# Get the width of a loaded image

**URL:** https://forum.kirupa.com/t/get-the-width-of-a-loaded-image/198463
**Category:** Uncategorized
**Created:** [August 25, 2006, 8:33am UTC](https://forum.kirupa.com/t/get-the-width-of-a-loaded-image/198463 "2006-08-25T08:33:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ieatcotten](https://avatars.discourse-cdn.com/v4/letter/i/3da27b/32.png) [@ieatcotten](https://forum.kirupa.com/u/ieatcotten)
#### Post date: [August 25, 2006, 8:33am UTC](https://forum.kirupa.com/t/get-the-width-of-a-loaded-image/198463/1 "2006-08-25T08:33:48Z")

</div>

Hello, I need to set the position of a loaded image based on it’s width.  
The problem is that after I load the picture, the width property is still 0.  
For example, the following traces 0.

```auto

var targetClip:MovieClip = someClip_mc.createEmptyMovieClip("myTargetClip",someClip_mc.getNextHighestDepth());
picLoader.loadClip('somePicture.jpg',targetClip);

trace(targetClip._width);

```

Does anyone know how I can get the width of the picture I load.

Thanks, -I
