# FLASH MX loadVars with htmlText problem

**URL:** https://forum.kirupa.com/t/flash-mx-loadvars-with-htmltext-problem/130296
**Category:** Uncategorized
**Created:** [December 3, 2004, 8:52am UTC](https://forum.kirupa.com/t/flash-mx-loadvars-with-htmltext-problem/130296 "2004-12-03T08:52:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Marakkesh](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@Marakkesh](https://forum.kirupa.com/u/Marakkesh)
#### Post date: [December 3, 2004, 8:52am UTC](https://forum.kirupa.com/t/flash-mx-loadvars-with-htmltext-problem/130296/1 "2004-12-03T08:52:38Z")

</div>

I am having a strange problem…

If I am using the following code to pull straight text data (output as html), I don’t have any problems, except of course that my html tags don’t render properly:

System.useCodePage = true;  
loadText = new loadVars();  
loadText.load(“[http://www.mysite.com/func/data.php](http://www.mysite.com/func/data.php)”);  
loadText.onLoad = function() {  
topbar.text = this.topbar;  
};

However, if I do ANY of the following, it doesn’t work - the variables aren’t imported and I have a blank .swf:

change

topbar.text = this.topbar;

to

topbar.htmlText = this.topbar;

or to

topbar.html = true;  
topbar.htmlText = this.topbar;

or I add

topbar.html = true;  
topbar.htmlText = this.topbar;

AND set the ‘render as html’ in the text properties box…

I have tested this thing to death and I don’t get it… data.php renders fine, and the .swf works if I am just using plain topbar.text, but not with HTML…

What’s up?

Thanks
