# Load jpg/swf thru XML list, onClick

**URL:** <https://forum.kirupa.com/t/load-jpg-swf-thru-xml-list-onclick/149555>\
**Category:** flash\
**Created:** [May 30, 2005, 4:23pm UTC](https://forum.kirupa.com/t/load-jpg-swf-thru-xml-list-onclick/149555 "2005-05-30T16:23:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atle\_mo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/atle_mo/32/1198_2.png) [@atle\_mo](https://forum.kirupa.com/u/atle_mo)\
**Post date:** [May 30, 2005, 4:23pm UTC](https://forum.kirupa.com/t/load-jpg-swf-thru-xml-list-onclick/149555/1 "2005-05-30T16:23:26Z")

</div>

Hello people!

I’ve been looking thru the forum but can’t find a very simple way to do this.  
Have a look at this quick illustration:

![](http://www.atlemo.com/files/howto.jpg)

What I want to happen is:  
When you click a thumbnail (button) on the right side, a jpg (or swf) loads into the light grey field on the left. It has to have a preloader bar aswell. The files are loaded from an XML file.

I would assume the [XML Photo Gallery Tutorial](http://../developer/mx2004/xml_flash_photogallery.htm) is a good start, but I’m not very good at actionscripting so a little help would be very nice 🙂

Thank you!
