# External Text

**URL:** <https://forum.kirupa.com/t/external-text/258326>\
**Category:** Uncategorized\
**Created:** [April 23, 2008, 2:52am UTC](https://forum.kirupa.com/t/external-text/258326 "2008-04-23T02:52:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![split67](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/split67/32/2089_2.png) [@split67](https://forum.kirupa.com/u/split67)\
**Post date:** [April 23, 2008, 2:52am UTC](https://forum.kirupa.com/t/external-text/258326/1 "2008-04-23T02:52:35Z")

</div>

I feel like a noob asking this, but i can’t get my external .txt file to load up correctly. I’m getting “{\rtf1” on my stage instead of the text in my file. So i think it’s my file, but i’m not sure what to begin the .txt file with. I know in AS2, it was the variable name, but we’re not in AS2 anymore Dorothy! My code is below, but i think it works fine. I think it’s my .txt file. Ideas? Thoughts? Name calling?

:::::::::::::::::::::::::CODE:::::::::::::::::::::::::::::::::::::::  
var externalReq:URLRequest = new URLRequest(“myText.txt”)  
var externalLoad:URLLoader = new URLLoader();

```
externalLoad.load(externalReq)

externalLoad.addEventListener(Event.COMPLETE, textReady); 
external_txt.x = 300; 
external_txt.y = 200; 
external_txt.border = false; 
external_txt.width = 50; 
external_txt.height = 20; 

addChild(external_txt); 
    function textReady(event:Event):void {     
        external_txt.text = event.target.data; 
    }
```
