# Load different areas of text file with AS3

**URL:** <https://forum.kirupa.com/t/load-different-areas-of-text-file-with-as3/301544>\
**Category:** flash\
**Created:** [December 11, 2009, 12:26am UTC](https://forum.kirupa.com/t/load-different-areas-of-text-file-with-as3/301544 "2009-12-11T00:26:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![caspian](https://avatars.discourse-cdn.com/v4/letter/c/9d8465/32.png) [@caspian](https://forum.kirupa.com/u/caspian)\
**Post date:** [December 11, 2009, 12:26am UTC](https://forum.kirupa.com/t/load-different-areas-of-text-file-with-as3/301544/1 "2009-12-11T00:26:18Z")

</div>

I’ve been looking for a tutorial that loads different variables in a text file to different textfield/textbox in flash using AS3. So my text file would look like this:

myVariable1=\<p class=‘header’\>Headline1\</p\>\<br\>Subtext content 1  
myVariable2=\<p class=‘header’\>Headline2\</p\>\<br\>Subtext content 2  
myVariable3=\<p class=‘header’\>Headline2\</p\>\<br\>Subtext content 3

And “myVariable1” would load in textbox “myText\_txt\_1” in flash and “myVariable2” would load in textbox “myText\_txt\_2” and so on…

I think this is possible in AS2 but is this even possible in AS3?

:lol:Thanks for the help!
