# Textarea tests fine, but when uploaded it doesn't load .txt file

**URL:** <https://forum.kirupa.com/t/textarea-tests-fine-but-when-uploaded-it-doesnt-load-txt-file/169499>\
**Category:** flash\
**Created:** [November 16, 2005, 7:09pm UTC](https://forum.kirupa.com/t/textarea-tests-fine-but-when-uploaded-it-doesnt-load-txt-file/169499 "2005-11-16T19:09:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![homesickalien](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@homesickalien](https://forum.kirupa.com/u/homesickalien)\
**Post date:** [November 16, 2005, 7:09pm UTC](https://forum.kirupa.com/t/textarea-tests-fine-but-when-uploaded-it-doesnt-load-txt-file/169499/1 "2005-11-16T19:09:09Z")

</div>

Hello friends,

i’ve created two textarea fields that pull data from a textfile in the same directory and formats it with CSS. it tests fine on my computer, but when i upload it, it doesn’t show the txt file contents. It’s just blank. I’ve been looking around everywhere to try and find a solution, but i can’t seem to find anything. Also, the scrollbar on the side of the textarea doesn’t load in IE but loads in firefox.

Any help would be greatly appreciated. Here’s some of my code:

```auto
mytextboxstyle = new TextField.StyleSheet();
_root.mytextboxstyle.load("textarea_style.css");
mytextbox.styleSheet = mytextboxstyle;
// Specify mytextbox to read text as HTML
mytextbox.html = true;
// Specify mytextbox to wrap text
mytextbox.wordWrap = true;
// Specify mytextbox to have a scrollbar
mytextbox.multiline = true;
mytextbox.onLoad = function() {
	loadtextContent = new LoadVars();
	// Load the text file into my movie
	_root.loadtextContent.load("press_content.txt");
	// Start a new function to load the text file
	loadtextContent.onLoad = function(success) {
		if (success) {
			// loads the file into mytextbox
			mytextbox.text = this.mytext;
		}
	};
};

```
