# Loading external text file in htmlText

**URL:** <https://forum.kirupa.com/t/loading-external-text-file-in-htmltext/289353>\
**Category:** flash\
**Created:** [May 29, 2009, 9:01am UTC](https://forum.kirupa.com/t/loading-external-text-file-in-htmltext/289353 "2009-05-29T09:01:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rav3](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@rav3](https://forum.kirupa.com/u/rav3)\
**Post date:** [May 29, 2009, 9:01am UTC](https://forum.kirupa.com/t/loading-external-text-file-in-htmltext/289353/1 "2009-05-29T09:01:07Z")

</div>

Hi,

i have an external txt file that i wanna display as a htmlText in flash.

i have the following code.

```auto
var rhetoric:TextField = this.createTextField("rhetoric", this.getNextHighestDepth(), 0, 0, 400, 200);

var rhetoric_fmt:TextFormat = new TextFormat();
rhetoric_fmt.align = "left";
rhetoric_fmt.color = 0x333333;
rhetoric_fmt.font = "Helvetica";
rhetoric_fmt.size = 12;
rhetoric_fmt.leading = 1;

rhetoric.wordWrap = true;
rhetoric.selectable = false;
rhetoric.antiAliasType = "advanced";
rhetoric.gridFitType = "pixel";
rhetoric.embedFonts = true;
rhetoric.html = true;

rhetoricText = new LoadVars();
rhetoricText.load("textFile/rhetoric.txt");
rhetoricText.onLoad = function()
{
    
    rhetoric.htmlText = this.rhetoric;
    rhetoric.setTextFormat(rhetoric_fmt);

};

```

in rhetoric.txt

```auto
&rhetoric=We differentiate ourselves from the rest of the competition through the way we look at consumerism and communications.

<b>How can your products impact the lives of your customers?</b>

We believe in the power of experiences, it is what our lives are made up of, how we learn, how we evolve.&

```

but when display to flash it doesnt give me the \<b\>\</b\> i wanted…  
Anything wrong with my code?
