# External txt file textarea "undefined"

**URL:** <https://forum.kirupa.com/t/external-txt-file-textarea-undefined/160847>\
**Category:** flash\
**Created:** [August 30, 2005, 12:28am UTC](https://forum.kirupa.com/t/external-txt-file-textarea-undefined/160847 "2005-08-30T00:28:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlink](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dlink](https://forum.kirupa.com/u/dlink)\
**Post date:** [August 30, 2005, 12:28am UTC](https://forum.kirupa.com/t/external-txt-file-textarea-undefined/160847/1 "2005-08-30T00:28:00Z")

</div>

EDIT: for the fla files:  
Please login to my [http://www.250free.com](http://www.250free.com) account and download the files yourself.  
account: dlink  
pw: helpplease  
hotlinking isn’t allowed on the free accounts with large files.

I’ve uploaded flash files/swfs and they’re in the same folder. I can’t get the external txt file to display in the textarea component correctly. When I click the button to load the text the text doesn’t show up from the file and instead says “undefined” (without the quotes).

How do I fix this so that the text from the external txt file loads correctly?

I have 3 layers…textarea, button, and actions. This is the AS on the actions layer:

> \_global.styles.TextArea.setStyle(“backgroundColor”,“false”);  
> setStyle(“borderStyle”, “none”);  
> aboutmestyle = new TextField.StyleSheet();  
> aboutmestyle.load(“[http://dlink.250free.com/css.txt](http://dlink.250free.com/css.txt)”);  
> aboutme.styleSheet = aboutmecontentstyle;  
> //Specify mytextbox to read text as HTML  
> aboutme.html = true;  
> // Specify mytextbox to wrap text  
> aboutme.wordWrap = true;  
> // Specify mytextbox to have a scrollbar  
> aboutme.multiline = true;  
> read1.onRelease = function() {  
> loadtextContent = new LoadVars();  
> // Load the text file into my movie  
> loadtextContent.load(“[http://dlink.250free.com/aboutmecontent.txt](http://dlink.250free.com/aboutmecontent.txt)”);  
> // Start a new function to load the text file  
> loadtextContent.onLoad = function(success) {  
> if (success) {  
> // loads the file into mytextbox  
> aboutme.text = this.aboutmecontent;  
> }  
> };  
> };

Thanks for any help.
