# Dynamically loaded "rich" text

**URL:** https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935
**Category:** flash
**Created:** [November 10, 2002, 7:14pm UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935 "2002-11-10T19:14:58Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![bacalao](https://avatars.discourse-cdn.com/v4/letter/b/a698b9/32.png) [@bacalao](https://forum.kirupa.com/u/bacalao)
#### Post date: [November 10, 2002, 7:14pm UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/1 "2002-11-10T19:14:58Z")

</div>

Is there a way this can be done? Dynamically loading rich text.

---

<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: [November 10, 2002, 7:53pm UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/2 "2002-11-10T19:53:03Z")

</div>

It is called HTML enabled text.

```auto
myText = "< B >this is BOLD text< /B >"
myTextBox.html = truel
myTextBox.htmlText = myText

```

Just remove the spaces between the bold tags, I had to do that or the board would have converted it. This code goes on a frame, and the var name of your dynamic text box is “myTextBox”.

---

<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: [November 11, 2002, 4:40am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/3 "2002-11-11T04:40:35Z")

</div>

Sorry, I didn’t explain properly. I have a scroller that loads text dynamically but when I try to load it with HTML text I get the coding also. :q:

---

<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: [November 11, 2002, 4:41am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/4 "2002-11-11T04:41:28Z")

</div>

What is the code you are using to load your text?

---

<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: [November 11, 2002, 4:50am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/5 "2002-11-11T04:50:01Z")

</div>

Want to add to the one on the kirupa site. So that it can read html.

---

<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: [November 11, 2002, 4:52am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/6 "2002-11-11T04:52:46Z")

</div>

```auto
loadText = new loadVars();
loadText.load("kirupa.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
                scroller.html = true;
		scroller.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: [November 11, 2002, 4:56am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/7 "2002-11-11T04:56:21Z")

</div>

Worked thanks, man!!! Real newbie could you tell. How do you learn something like that on your own? Thanks again. 🙂

---

<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: [November 11, 2002, 4:58am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/8 "2002-11-11T04:58:00Z")

</div>

No problem man 🙂

I read up on things in the AS Reference in the actions panel in MX.

Other things I learned from this forum by running searches using the white search button at the top of this forum, and if it can’t be found I post the question. And other things I learn from all the tutorials at kirupa.

---

<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: [November 11, 2002, 5:03am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/9 "2002-11-11T05:03:34Z")

</div>

Know anything about globally controlling sound with a volume slider. 😏

---

<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: [November 11, 2002, 5:06am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/10 "2002-11-11T05:06:24Z")

</div>

Hrmmm, nope. I know there is something called setVolume :-\

Try this… [http://www.flashkit.com/tutorials/Audio/Flash\_MX-Kenny\_Be-824/](http://www.flashkit.com/tutorials/Audio/Flash_MX-Kenny_Be-824/)

---

<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: [November 11, 2002, 5:10am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/11 "2002-11-11T05:10:22Z")

</div>

Cool, thanks for all your 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: [November 11, 2002, 5:10am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/12 "2002-11-11T05:10:54Z")

</div>

No problem 🙂

---

<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: [November 12, 2002, 1:16am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/13 "2002-11-12T01:16:02Z")

</div>

Does the fact that I have set up the text file as HTML mean that I can link to URLs or MAILTOs from the text? Would this be done the same as any standard HTML page? 🙂

---

<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: [November 12, 2002, 3:16am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/14 "2002-11-12T03:16:05Z")

</div>

You can put a link as a standard HTML link… not sure about mailto: links, never tried.

---

<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: [November 12, 2002, 3:23am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/15 "2002-11-12T03:23:14Z")

</div>

Cool Thanks

---

<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: [November 12, 2002, 3:24am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/16 "2002-11-12T03:24:20Z")

</div>

Mailto seems to have worked.

---

<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: [November 12, 2002, 3:54am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/17 "2002-11-12T03:54:14Z")

</div>

Cool 🙂

---

<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 15, 2003, 8:32am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/18 "2003-04-15T08:32:42Z")

</div>

hmm hello people, i did all the above things… but still no sigar …

none of my text is loading,  
i made a dynamic text box with html on (\<\>)

this code:  
loadText = new loadVars();  
loadText.load(“data/personeel.txt”);  
//creating the loadVarsText function  
loadText.onLoad = function() {  
scroller.html = true;  
scroller.htmlText = this.personeeltext;  
};

a text file in the folder data with the name personeel.txt

personeeltext=sgdsgsgsgsg

the text box is in a movie clip… can that be the problem?

---

<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 15, 2003, 8:55am UTC](https://forum.kirupa.com/t/dynamically-loaded-rich-text/7935/19 "2003-04-15T08:55:48Z")

</div>

hmm had my font set to futura, changed it to verdana and it worked…
