# (\<-- yay lightning)Changing Dynamic Text Box variable

**URL:** https://forum.kirupa.com/t/yay-lightning-changing-dynamic-text-box-variable/30233
**Category:** flash
**Created:** [September 5, 2003, 4:12pm UTC](https://forum.kirupa.com/t/yay-lightning-changing-dynamic-text-box-variable/30233 "2003-09-05T16:12:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Riddler](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Riddler](https://forum.kirupa.com/u/Riddler)
#### Post date: [September 5, 2003, 4:12pm UTC](https://forum.kirupa.com/t/yay-lightning-changing-dynamic-text-box-variable/30233/1 "2003-09-05T16:12:01Z")

</div>

Ok hopefully i can explain this to you guys understanding…

I am wanting to creat a powerpoint type presentation (although im useing flash for the obvious reasons… coolness). I want to make it where whenever the movie loops the Dynamic Text box’s variable changes, so here is what i did: (i dont think the syntax is correct for flash, please correct my sytax to work properly w/ flash)

loadVariables(“text.txt”, this);

var = 0;

if(var==0) {

textbox\_var = text\_1; /_HERE IS THE MISSING COMMAND_/  
var++;  
}

if(var==1) {  
textbox\_var = text\_1; /_HERE IS THE MISSING COMMAND_/  
var++;  
}  
… and so on

ok as you can see i need to know how to assign a new variable to the text box whenever it loops (the vars such as “text\_1” will be defined in the text file. Hope you guys understand what may be giberish lol thanx!

Rid?
