# As3 xml gallery

**URL:** <https://forum.kirupa.com/t/as3-xml-gallery/311999>\
**Category:** flash\
**Created:** [July 22, 2010, 6:31am UTC](https://forum.kirupa.com/t/as3-xml-gallery/311999 "2010-07-22T06:31:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WebSp1nner](https://avatars.discourse-cdn.com/v4/letter/w/b77776/32.png) [@WebSp1nner](https://forum.kirupa.com/u/WebSp1nner)\
**Post date:** [July 22, 2010, 6:31am UTC](https://forum.kirupa.com/t/as3-xml-gallery/311999/1 "2010-07-22T06:31:46Z")

</div>

Hey all,

I’m coding an xml gallery with thumbnails. Ive set a container for the thumbs and for the main image. when user clicks on a thumb it loads the larger image. Preloaders are done all is well however when the user clicks on a nother thumb it just loads in the image over the last one. How can I cause it to delete the currently displayed image and then load the new one.

would :- removeChild work or do I need to use .unload on the loader?

I’m confused I think I’ve been on this too long.

Any help would be greatly appreciated.

Or if you know of any good AS3 XML thumbnail/gallery tutorials that could help.

Cheers  
Webs1nner 🙂
