# Getting Dynamic Image Dimensions

**URL:** <https://forum.kirupa.com/t/getting-dynamic-image-dimensions/57687>\
**Category:** flash\
**Created:** [July 15, 2004, 10:29am UTC](https://forum.kirupa.com/t/getting-dynamic-image-dimensions/57687 "2004-07-15T10:29:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamieMX](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@JamieMX](https://forum.kirupa.com/u/JamieMX)\
**Post date:** [July 15, 2004, 10:29am UTC](https://forum.kirupa.com/t/getting-dynamic-image-dimensions/57687/1 "2004-07-15T10:29:52Z")

</div>

Does anyone know how to get the width and height properties of an image being dynamically imported into flash? (I need to know this BEFORE the whole image loads)

Thanks in advance,  
J

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 15, 2004, 10:42am UTC](https://forum.kirupa.com/t/getting-dynamic-image-dimensions/57687/2 "2004-07-15T10:42:15Z")

</div>

As far as I know, the image has to be loaded first before you can retrieve those properties.

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 15, 2004, 11:03am UTC](https://forum.kirupa.com/t/getting-dynamic-image-dimensions/57687/3 "2004-07-15T11:03:53Z")

</div>

maybe you can load your images from an xml file and put the width and height as arguments in the xml file.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 15, 2004, 11:48am UTC](https://forum.kirupa.com/t/getting-dynamic-image-dimensions/57687/4 "2004-07-15T11:48:47Z")

</div>

That’s a possibility, yep:)  
But I wonder if that is what JamieMX is after…

scotty(-:
