# Variable when calling text file content

**URL:** <https://forum.kirupa.com/t/variable-when-calling-text-file-content/248407>\
**Category:** flash\
**Created:** [January 8, 2008, 12:09am UTC](https://forum.kirupa.com/t/variable-when-calling-text-file-content/248407 "2008-01-08T00:09:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wonko](https://avatars.discourse-cdn.com/v4/letter/w/8dc957/32.png) [@wonko](https://forum.kirupa.com/u/wonko)\
**Post date:** [January 8, 2008, 12:09am UTC](https://forum.kirupa.com/t/variable-when-calling-text-file-content/248407/1 "2008-01-08T00:09:22Z")

</div>

Folks:

I’m down with calling up content from external text files. No problems there. What I’d like to know is this:

If the text file has a number of parts being called up like this:

&text1=this is the first piece of text.&  
&text2=this is the second piece of text.&  
&text3=this is the third piece of text.&

Can I have a single text box call each of these when necessary? I know different pieces of content can be called from separate text files (like here [http://www.kirupa.com/developer/mx/multiple\_dynamictext.htm](http://www.kirupa.com/developer/mx/multiple_dynamictext.htm)) but I only want to use one text files with all the info.

So:

Can the “text1” part of the following piece of code (which retrieves the appropriate piece of text from the text file) be a variable?

```auto
bodytext.htmlText = this.text1;

```

Any help would be great.
