# Dynamic Text Fields

**URL:** <https://forum.kirupa.com/t/dynamic-text-fields/18506>\
**Category:** flash\
**Created:** [April 17, 2003, 10:35am UTC](https://forum.kirupa.com/t/dynamic-text-fields/18506 "2003-04-17T10:35:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![newflashmxuser](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@newflashmxuser](https://forum.kirupa.com/u/newflashmxuser)\
**Post date:** [April 17, 2003, 10:35am UTC](https://forum.kirupa.com/t/dynamic-text-fields/18506/1 "2003-04-17T10:35:12Z")

</div>

Hello,

I am new to Flash MX and I havent got any experience with previous versions of Flash.

Basically I am making a flash site for a portfolio I am setting up.

I would like to know how to be able make a flash site that when you click on a link, it will load the relevant text into a box, then when you click on another link, it will then clear that text and then put the new text into it and so on and so on.

I know how to make a text box and load up a notepad file, but thats it.

Any help would be great.

Thanks,  
William

---

<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:** [April 17, 2003, 11:12am UTC](https://forum.kirupa.com/t/dynamic-text-fields/18506/2 "2003-04-17T11:12:02Z")

</div>

make the text file with all of your variables in it. something like

&txt1=blah blah blah… four score and seven years ago…&txt2=…I will not eat them on a plane I will not eat them on a train…&txt3=…cried the raven, never more&

load the text file into the \_root timeline.

create your dynamic text field and give it an instance name of “textOutPut”

then each button would have something like this

on(release){  
\_root.textOutPut.text=\_root.txt1;  
}

on(release){  
\_root.textOutPut.text=\_root.txt2;  
}

on(release){  
\_root.textOutPut.text=\_root.txt3;  
}
