# Flash Won't Load HTML Text

**URL:** <https://forum.kirupa.com/t/flash-wont-load-html-text/225591>\
**Category:** flash\
**Created:** [May 14, 2007, 3:27am UTC](https://forum.kirupa.com/t/flash-wont-load-html-text/225591 "2007-05-14T03:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomyknoker](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@tomyknoker](https://forum.kirupa.com/u/tomyknoker)\
**Post date:** [May 14, 2007, 3:27am UTC](https://forum.kirupa.com/t/flash-wont-load-html-text/225591/1 "2007-05-14T03:27:37Z")

</div>

Hi all… I can’t get my text to render as HTML no matter what I do, maybe I’m just missing something simple… Here is my code:

```auto
function loadTxt(theTxt){
    var lv:LoadVars = new LoadVars();
    lv.onLoad = function(success:Boolean){
        
        if (success){
            my_text.html = true;
            my_text.htmlText = lv.txt;
			my_text.mouseWheelEnabled = true;
			my_text.selectable = true;
			my_text.multiline = true;
        }else{
            trace ("cannot load text!");
        }
    };
    lv.load(theTxt);
}

```

And then on frame 20 I have this:

```auto
loadTxt("text/file.txt")

```

It loads fine but if I add any HTML say for instance \<b\> the text displays up until it gets to that point and then stops… I made sure that “render Text As HTML” was also checked… But no luck ☹
