# Text "gallery"

**URL:** <https://forum.kirupa.com/t/text-gallery/10196>\
**Category:** Uncategorized\
**Created:** [December 26, 2002, 7:49pm UTC](https://forum.kirupa.com/t/text-gallery/10196 "2002-12-26T19:49:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nex](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@nex](https://forum.kirupa.com/u/nex)\
**Post date:** [December 26, 2002, 7:49pm UTC](https://forum.kirupa.com/t/text-gallery/10196/1 "2002-12-26T19:49:41Z")

</div>

i have been having a god awful time with this! what i want to do is something very similar to the photo gallery, except it is to be done with text. picture a rectangle with text in it. when a button is clicked, new text will be in place in the rectangle. i am wondering what the easiest way to go about doing this is. i was very confused. i thought maybe i could alter the photo gallery code and take out the fading and soforth to make it work, but i just confused myself. i hope my question is clear! any help is appreciated!

---

<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 5, 2003, 3:51pm UTC](https://forum.kirupa.com/t/text-gallery/10196/2 "2003-01-05T15:51:47Z")

</div>

give the text a var name (something like loadedText) and then just use loadVariables in the movieclip the text is in, loading textfiles which have  
loadedText=a bunch of text…  
so when loaded, the loadedText will immediately be the loaded variable loadedText

ie:

myMc.loadVariables(“mytext.txt”)  
/\* mytext.txt contains:  
loadedText=here is the text I want to display  
\*/  
// and loadedText is a dynamic textField in myMC with the var name loadedText
