# Load html Text file

**URL:** <https://forum.kirupa.com/t/load-html-text-file/287830>\
**Category:** flash\
**Created:** [May 6, 2009, 8:09pm UTC](https://forum.kirupa.com/t/load-html-text-file/287830 "2009-05-06T20:09:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cortezcreations](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cortezcreations](https://forum.kirupa.com/u/cortezcreations)\
**Post date:** [May 6, 2009, 8:09pm UTC](https://forum.kirupa.com/t/load-html-text-file/287830/1 "2009-05-06T20:09:56Z")

</div>

Hello all hoping someone can help out here.  
I’m trying to setup a WYSIWYG text editor for a flash text CMS.

the first bit I’m stuck on is loading a saved text file here is the current actionscript that loads the text into the editor

```auto
// import FlashArea class
import FlashArea.FlashAreaClass;

//FlashArea instance
var area : FlashAreaClass;

//create instance of FlashArea
area = FlashAreaClass.create(this, "flashArea", 2000);// be sure that on level 2000 you have not other movie!

//set coordinates for FlashArea object
area._x = 10;
area._y = 80;

//set size for FlashArea object
area.setSize(430, 350);

//load options
area.loadOptions("resources/FlashArea/options/default.xml");

//set text
area.setHtmlText('<P ALIGN="LEFT"><FONT FACE="Arial" style="font-size:14px" COLOR="#000000"><B>Flash area:</B></FONT></P><P ALIGN="LEFT"><FONT FACE="Arial" style="font-size:14px" COLOR="#000000">Type some more text into it.</FONT></P><P ALIGN="LEFT"><FONT FACE="Arial" style="font-size:14px" COLOR="#000000"></FONT></P><P ALIGN="LEFT"><FONT FACE="Arial" style="font-size:14px" COLOR="#000000"></FONT></P>');

stop();

```

How can I change this line to load in my text file?

```auto
area.setHtmlText('myText.txt');

```

Any help would be appreciated as I’ve purchased this script but there is absolutely no support that goes with it.  
Cheers
