# Retrieve Picture Size

**URL:** <https://forum.kirupa.com/t/retrieve-picture-size/95176>\
**Category:** Uncategorized\
**Created:** [November 21, 2003, 5:04pm UTC](https://forum.kirupa.com/t/retrieve-picture-size/95176 "2003-11-21T17:04:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jess](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jess](https://forum.kirupa.com/u/jess)\
**Post date:** [November 21, 2003, 5:04pm UTC](https://forum.kirupa.com/t/retrieve-picture-size/95176/1 "2003-11-21T17:04:47Z")

</div>

I need to know the width of a picture I load into a clip.  
But I always get Zero, while I see the picture properly loaded.  
What Am I doing wrong in this piece of code ?

[AS]\_root.createEmptyMovieClip(“contenerMC”,10);  
var imgMCL:MovieClipLoader = new MovieClipLoader;  
imgMCL.loadClip(“image001.jpg”,\_root.contenerMC);  
imgMCL.onLoadComplete = function(targetMC) {  
trace(targetMC.\_width);  
}[/AS]

Or any other way to retrieve the picture size at runtime ?

thxx :ne:
