# Dynamicaly loaded HTML text bug?

**URL:** <https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672>\
**Category:** Uncategorized\
**Created:** [April 8, 2003, 4:05am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672 "2003-04-08T04:05:30Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_X](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@Mr\_X](https://forum.kirupa.com/u/Mr_X)\
**Post date:** [April 8, 2003, 4:05am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/1 "2003-04-08T04:05:30Z")

</div>

I keep on running into weird formatting problems when working with external text files loaded in dynamic text boxes.  
the latest is with the attached txt file.  
It stops displaying the text right before the first href HTML tag… ☹  
Could anyone have a look at it and tell me what’s wrong with it?  
Thanks a lot guys!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 4:11am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/2 "2003-04-08T04:11:24Z")

</div>

I experience no difficulties. Did you properly html enable your textbox? I used this code…

[AS]loader = new LoadVars();  
loader.onLoad = function() {  
mta.html = true;  
mta.htmlText = this.myText;  
};  
loader.load(“info.txt”);[/AS]

Where mta was my textbox and loader was my loadVars() object.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 5:03am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/3 "2003-04-08T05:03:13Z")

</div>

yeah, it’s not something like that… The whole site has texts loading all over, I got all the variables working &#60u&#62 and &#60i&#62 tags work fine and h ref ones work fine in other parts of the site… So you see nothing wrong in that text file huh? Ho well, thx anyway lib!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 5:24am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/4 "2003-04-08T05:24:50Z")

</div>

ok, after experimenting a little more, I found out that if I tream the URL inside the href tag to something shorter \<code\>like [http://www.amazon.com/](http://www.amazon.com/)\</code\> instead of \<code\>[http://www.amazon.com/exec/obidos/tg/detail/-/B0000859TM/qid%3D1049130012/sr%3D8-4/ref%3Dsr\_8\_4/104-5957717-6394345?v=glance&s=videogames&n=507846](http://www.amazon.com/exec/obidos/tg/detail/-/B0000859TM/qid%3D1049130012/sr%3D8-4/ref%3Dsr_8_4/104-5957717-6394345?v=glance&s=videogames&n=507846)\</code\> It works fine! Does anyone knows what could be causing the problem in this line? And how to go around it? thx… Looks pretty buggy if you ask me… ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 5:33am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/5 "2003-04-08T05:33:38Z")

</div>

Oh, I didn’t notice your URL had a & in it.

The & symbol stands for new variable, and tells Flash to stop reading from there on.

Since your shorter URL does not contain the & symbol, it works fine.

You may have to use the HTML Special character code for that. I think it is…

&\*\*amp;

& \<-- yep it is…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 5:34am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/6 "2003-04-08T05:34:23Z")

</div>

Oh and yes… htmlText is actually pretty buggy, so watch out 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 6:17am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/7 "2003-04-08T06:17:10Z")

</div>

yeah, good catch… didn’t think about that…  
On the other hand, if you think about it, replacing “&” by “&+amp” doesn’t really help if you see what I mean… (the “&” is still there! 😉  
Is there any unicode or something like that I can use to replace it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 8, 2003, 6:36am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/8 "2003-04-08T06:36:48Z")

</div>

Oh, but &\*\*amp; does work because Flash actually recognizes that tag.

Check this out…

[http://www.macromedia.com/support/flash/ts/documents/htmltext.htm](http://www.macromedia.com/support/flash/ts/documents/htmltext.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 9, 2003, 11:38pm UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/9 "2003-04-09T23:38:01Z")

</div>

just for future reference… nothing I tried made this work.  
I checked your link, thx… didn’t help tho.  
To be honnest, I’m starting to seriously hate Flash on OS X as it’s one of the buggiest programs I’ve ever used. If I didn’t hate Microsoft even more I’d switch! 😉  
Looks like by removing the & symbol alltogether and just writing “amp;” it kinda works…  
thx for the help 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 9, 2003, 11:57pm UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/10 "2003-04-09T23:57:40Z")

</div>

is there also something I should know about the color tag? I got &#60FONT COLOR=’#FFFFFF’&#62&#60B&#62click me&#60/B&#62&#60/FONT&#62 and only the bold shows up… no white ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 10, 2003, 2:34am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/11 "2003-04-10T02:34:48Z")

</div>

The color tag works fine for me :-\

I used this…

myText=\<FONT COLOR=’#FF0000’\>\<B\>Hello\</B\>\</FONT\> World.

Worked fine :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 10, 2003, 4:25am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/12 "2003-04-10T04:25:19Z")

</div>

ho well… Maybe MX doesn’t like white or something… I’m giving up… To much of a headache to try to figure out what should be so simple… thanks tho 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 10, 2003, 4:41am UTC](https://forum.kirupa.com/t/dynamicaly-loaded-html-text-bug/17672/13 "2003-04-10T04:41:24Z")

</div>

White worked fine for me as well. Maybe it’s that whole Mac issue 😛

overall htmlText is buggy, but you are experiencing bugs that aren’t even bugs… so I have no clue what to tell you :-\
