# Photo gallery with text

**URL:** <https://forum.kirupa.com/t/photo-gallery-with-text/11726>\
**Category:** Uncategorized\
**Created:** [January 21, 2003, 4:16pm UTC](https://forum.kirupa.com/t/photo-gallery-with-text/11726 "2003-01-21T16:16:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![canaryfarmer](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@canaryfarmer](https://forum.kirupa.com/u/canaryfarmer)\
**Post date:** [January 21, 2003, 4:16pm UTC](https://forum.kirupa.com/t/photo-gallery-with-text/11726/1 "2003-01-21T16:16:38Z")

</div>

I would like to modify the photo gallery tutorial by having a visible line or so of text change depending on what photo is being shown, like a caption. What would be the easiest way to do this? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 6:57pm UTC](https://forum.kirupa.com/t/photo-gallery-with-text/11726/2 "2003-01-21T18:57:42Z")

</div>

I don’t have the syntax here for you but I can tell you how I would approach it.

I would define a list with the names of the images in the first frame of your movie. If you create a, array you can associate a line of text with the image name / file name.

You then create a text object on the gallery movie that references the list item.

You could also produce an XML file that contains the file name and description and have your Flash movie load it. That way you might be able to manage it better.

G

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 7:06pm UTC](https://forum.kirupa.com/t/photo-gallery-with-text/11726/3 "2003-01-21T19:06:00Z")

</div>

I used this as a model in precisely what you’re trying to accomplish. Hope it helps.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 21, 2003, 8:07pm UTC](https://forum.kirupa.com/t/photo-gallery-with-text/11726/4 "2003-01-21T20:07:51Z")

</div>

Thanks a bunch, guys. That should be enough to get this working. (I hope.)
