# Novice needs help with xml captions for photo gallery

**URL:** https://forum.kirupa.com/t/novice-needs-help-with-xml-captions-for-photo-gallery/76182
**Category:** flash
**Created:** [January 15, 2005, 8:27pm UTC](https://forum.kirupa.com/t/novice-needs-help-with-xml-captions-for-photo-gallery/76182 "2005-01-15T20:27:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![danwangkw](https://avatars.discourse-cdn.com/v4/letter/d/6f9a4e/32.png) [@danwangkw](https://forum.kirupa.com/u/danwangkw)
#### Post date: [January 15, 2005, 8:27pm UTC](https://forum.kirupa.com/t/novice-needs-help-with-xml-captions-for-photo-gallery/76182/1 "2005-01-15T20:27:37Z")

</div>

I’ve created a series of thumbnails to load their corresponding external fullsize JPEG into a container movieclip. Above the container movieclip is a dynamic text field which I would like to have captions for the different photos when they are loaded. I would like to incorporate the captions via xml but I know next to nothing about xml but I figured out I need to sort out the following:

1. How do I structure the array for the pictures and their corresponding captions in a .xml file?

e.g.

pic01 - “Great Wall of China”  
pic02 - “Statue of Liberty”  
etc

1. How do I script within the first frame of my main movie to reference to this .xml file?

2. What script do I attach to each thumbnail button such that doing an ‘onRelease’ would call forth the corresponding caption and display it within the dynamic text box?

3. How must I name the dynamic text field to identify itself as the caption placeholder?

Any advice would be greatly appreciated.

Dan
