# Need Advance Help!

**URL:** <https://forum.kirupa.com/t/need-advance-help/1041>\
**Category:** Uncategorized\
**Created:** [August 7, 2002, 12:11am UTC](https://forum.kirupa.com/t/need-advance-help/1041 "2002-08-07T00:11:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![indojepang](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/indojepang/32/39_2.png) [@indojepang](https://forum.kirupa.com/u/indojepang)\
**Post date:** [August 7, 2002, 12:11am UTC](https://forum.kirupa.com/t/need-advance-help/1041/1 "2002-08-07T00:11:18Z")

</div>

How do I control the text like “photo gallery” (tutorial on MX), let’s say there’s three text file (text01, text02, text03) & 3 buttons (but1=loading the first text file, but2=next text, but3=previous text).

Would u be so kind telling me how to do this??? or making a tutorial about this so others can see??

---

<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:** [August 7, 2002, 6:26am UTC](https://forum.kirupa.com/t/need-advance-help/1041/2 "2002-08-07T06:26:35Z")

</div>

In textfile 1:  
in the beginning of text file 1 add  
_text1 =_  
text file 2 add  
_text2 =_  
and in text file 3 add  
_text3 =_  
so it would be… _text# =bla bla bla_  
now in the beginning of your movie add thise actions  
(these could be ona aframe or whatever…)

```auto
loadVariables("text01.txt",0);
loadVariables("text02.txt",0);
loadVariables("text03.txt",0);

```

- 

## Now make a textbox and make the variable name _textbox_

Now actions for button1:

```auto
on(release) {
_root.textbox = **text1** ;
}

```

Well if your textbox is not on the main timeline you have to naivagte to it “\_root.\<nav here\>.textbox”  
now for button 2 add the same action but change _text1_ to _text2_ and button 3 _text3_  
remember that you added these variables in the beginning of the text files…  
—add-on knowledge–  
you can add **var=num** in the loadVariables action as well like this:  
loadVariables(“text01.txt\*\*?var=num\*\*”,0);  
example:  
loadVariables(“text02?t2v=23”,0);  
it is good to have that there because if you update the textfile from time to time then people will see the updated information as well… otherwize people wont see the updated infromation after all…  
note: if you put that there you are not able to test the movie on your computer, it will cause an error.  
for more information about loadMovie/Variables please read  
[http://www.kirupaforum.com/showthread.php?s=&threadid=27](http://www.kirupaforum.com/showthread.php?s=&threadid=27)

Syko 🙂
