# Help loading external TXT file to a text area

**URL:** <https://forum.kirupa.com/t/help-loading-external-txt-file-to-a-text-area/122423>\
**Category:** Uncategorized\
**Created:** [September 13, 2004, 5:31pm UTC](https://forum.kirupa.com/t/help-loading-external-txt-file-to-a-text-area/122423 "2004-09-13T17:31:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imagined](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@imagined](https://forum.kirupa.com/u/imagined)\
**Post date:** [September 13, 2004, 5:31pm UTC](https://forum.kirupa.com/t/help-loading-external-txt-file-to-a-text-area/122423/1 "2004-09-13T17:31:30Z")

</div>

I know this may sound basic. I a beginner in Flash. I have read some books about flash and currently reading an actionscripting book.

This is a photoshop design of the flash site I want to make. ![](http://frapchimp.com/kirupaQuestion.jpg)

Following some tutorial and editing it a little bit, I placed a text area, and have a TXT file for the content and a CSS file for the styles. I pasted this code to the OUR STORY button:

on (release) {

myStyle = new TextField.StyleSheet();  
myStyle.load(“example.css”);  
TextHolder.styleSheet = myStyle;  
thisText = new LoadVars();  
thisText.load(“example.txt”);  
thisText.onLoad = function(success) {  
if (success) {  
TextHolder.text = thisText.myText;  
}  
};

}

What comes up is a big white text box with a scrollbar, and when I click the button the text appears in the white area.

Two things I dont like here.

1. I don’t want a big white text box with a scrollbar to be sitting there when I haven’t clicked anything.

2. It’s white. I want it to be invisible or black to blend with the rest of the site.

I would like the text to appear like the one in the Photoshop design. Thank you for your cooperation. This is the first all-Flash site I do. Any help is very much appreciated. Thanks,

Leo
