# Display random image Onload from XML

**URL:** <https://forum.kirupa.com/t/display-random-image-onload-from-xml/106402>\
**Category:** Uncategorized\
**Created:** [April 5, 2004, 3:28pm UTC](https://forum.kirupa.com/t/display-random-image-onload-from-xml/106402 "2004-04-05T15:28:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alwaysdrifting](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@alwaysdrifting](https://forum.kirupa.com/u/alwaysdrifting)\
**Post date:** [April 5, 2004, 3:28pm UTC](https://forum.kirupa.com/t/display-random-image-onload-from-xml/106402/1 "2004-04-05T15:28:32Z")

</div>

Hey,

Cello posted an excellent example of resizing a border around an image when a thumbnail is clicked: [http://www.kirupaforum.com/forums/showthread.php?s=&threadid=51430](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=51430)

My question isn’t directly related to a random image or xml but I’m using it in my example. I really want to know how to load an image when the swf file loads. Please have a look at my example and you’ll see what is wrong. It’s a little funky resizing the border at the moment when the file is loaded.

I appreciate the help. Cheers,  
Brian
