# Find width of loaded img

**URL:** https://forum.kirupa.com/t/find-width-of-loaded-img/202438
**Category:** flash
**Created:** [October 1, 2006, 10:19am UTC](https://forum.kirupa.com/t/find-width-of-loaded-img/202438 "2006-10-01T10:19:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cw17s0n](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cw17s0n/32/2837_2.png) [@cw17s0n](https://forum.kirupa.com/u/cw17s0n)
#### Post date: [October 1, 2006, 10:19am UTC](https://forum.kirupa.com/t/find-width-of-loaded-img/202438/1 "2006-10-01T10:19:28Z")

</div>

What I want to happen is a movieclip of text aligns 20px to the right of the loaded img, similar to what padding does in css, the code I am using is:  
textFields.\_x = (picture.\_width+20);  
textFields is the movieclip of text and the image is loading into picture

What actually happens is the the text aligns to picture.\_width but before the image the image has loaded or I am not telling it the right place to look for .\_width

I’ll include the .fla in for convenience

As always much thanks to anyone with a suggestion
