# HTML in dynamically loaded text?

**URL:** https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628
**Category:** Uncategorized
**Created:** [April 7, 2004, 1:18pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628 "2004-04-07T13:18:25Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![sparco](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@sparco](https://forum.kirupa.com/u/sparco)
#### Post date: [April 7, 2004, 1:18pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/1 "2004-04-07T13:18:25Z")

</div>

I’ve been looking everywhere for a way to get a scroller in dynamically loaded text, so thanx for that. but how can i get it to display the loaded text as html as i use the \<b\> \<I\> \<U\> and \<a href="…\> tags alot! thanx for any help you can offer  
Sparco!

---

<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 7, 2004, 3:10pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/2 "2004-04-07T15:10:26Z")

</div>

Make sure you’ve got the ‘render text as html’ button pressed on the properties for the dynamic text box. It is the button that looks like this \<\>

Also in your code to load the text dynamically make sure you have html set to true, i.e.

yourtextboxname.html = true;

Hope this helps!  
:bu:

---

<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 7, 2004, 3:31pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/3 "2004-04-07T15:31:07Z")

</div>

thankyou ill try that!!! :thumb:

---

<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 7, 2004, 3:38pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/4 "2004-04-07T15:38:42Z")

</div>

This technote might come in hand:  
[http://www.macromedia.com/support/flash/ts/documents/html\_text\_outlines.htm](http://www.macromedia.com/support/flash/ts/documents/html_text_outlines.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 7, 2004, 3:55pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/5 "2004-04-07T15:55:39Z")

</div>

thanx but it still doesnt seem to be working :S ill keep playing about

---

<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 7, 2004, 4:04pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/6 "2004-04-07T16:04:17Z")

</div>

Can you post the code you are using to load the text into the text box?

---

<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 7, 2004, 4:20pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/7 "2004-04-07T16:20:10Z")

</div>

ive uploaded my .fla and the external files to a zippy, [http://www.8stitches.millenniumhosting.net/dynamic%20scrollers.zip](http://www.8stitches.millenniumhosting.net/dynamic%20scrollers.zip)  
its just the dynamic scrollbar tutorial .fla but ive changed is, if u click on the black square u can see that the \<i\> tags are not working etc.

thanx

o and the code that i am using is:

> 

loadText = new loadVars();  
loadText.load(“tf.txt”);  
// creating the loadVarsText function  
loadText.onLoad = function() {  
plop.text = this.kirupatext;  
};

\<- from the tutorial lol

---

<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 7, 2004, 4:25pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/8 "2004-04-07T16:25:27Z")

</div>

You have to enable the [font=Courier New]textfield.html[/font] property and assign the text to the textfield through the [font=Courier New]textfield.htmlText[/font] property:

```auto
plop.html = true;
 plop.htmlText = this.kirupatext;

```

---

<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 7, 2004, 4:26pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/9 "2004-04-07T16:26:58Z")

</div>

Yes, see post #2 . . . 😉

---

<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 7, 2004, 4:30pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/10 "2004-04-07T16:30:36Z")

</div>

sorry, i did try but i diddnt know that it should be plop.htmlText, ill give it a try! Thanx

---

<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 7, 2004, 5:23pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/11 "2004-04-07T17:23:53Z")

</div>

Thankyou So Mucht!

IT WORKS 🙂

---

<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 7, 2004, 5:38pm UTC](https://forum.kirupa.com/t/html-in-dynamically-loaded-text/106628/12 "2004-04-07T17:38:53Z")

</div>

Good deal :thumb:
