# Dynamic txt with html tags problem

**URL:** https://forum.kirupa.com/t/dynamic-txt-with-html-tags-problem/243454
**Category:** Uncategorized
**Created:** [November 7, 2007, 9:18am UTC](https://forum.kirupa.com/t/dynamic-txt-with-html-tags-problem/243454 "2007-11-07T09:18:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![masskontroll](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@masskontroll](https://forum.kirupa.com/u/masskontroll)
#### Post date: [November 7, 2007, 9:18am UTC](https://forum.kirupa.com/t/dynamic-txt-with-html-tags-problem/243454/1 "2007-11-07T09:18:15Z")

</div>

Hi there, I need to dynamically load text into Flash. I have a .txt file named “01.txt” from which the text is loaded, in which the text opens with “myText=” followed by the regular text. In flash I have a dynamic text field “content\_txt”. I got this script:

text = new LoadVars();  
text.onLoad = function() {  
content\_txt.text = this.myText;  
};

tekst.load(“01.txt”);

Now how do I enable html? I checked the “\<\>” button in the properties of the dynamic text field, but when I type html tags in the original txt file, Flash doesn’t pick up on it. Say, I type \<b\>hello\</b\> in the original text file to get ‘hello’ to be displayed bold, the text simply displays as “\<b\>hello\</b\>”. I have checked several tutorials, but I must be missing something… Any help appreciated!
