# Scrolling Dynamically Loaded HTML?

**URL:** https://forum.kirupa.com/t/scrolling-dynamically-loaded-html/926
**Category:** flash
**Created:** [August 2, 2002, 6:53pm UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-html/926 "2002-08-02T18:53:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![byis](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@byis](https://forum.kirupa.com/u/byis)
#### Post date: [August 2, 2002, 6:53pm UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-html/926/1 "2002-08-02T18:53:33Z")

</div>

I walked through the [tuturial](http://www.kirupa.com/developer/mx/dynamic_scroller.asp) and got everything working. I was wondering if instead of loading a text file is it possible to load a HTML page in its place. Its seems easy enough - just replace _loadText.load(“kirupa.txt”); with loadText.load(“file.html.”);_. However then how would it pick up on the \*“kirupatext=” \*? Sorry dont know much about AS but im sure this can be done. Thanks 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: [August 2, 2002, 8:25pm UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-html/926/2 "2002-08-02T20:25:00Z")

</div>

You have to HTML-enable your text, and then use the texthtlm property of the textbox:

```auto
text2.html = true;
text2.htmlText = "<b> this is bold text </b>";

```

pom :asian:

---

<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: [August 3, 2002, 5:40am UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-html/926/3 "2002-08-03T05:40:22Z")

</div>

Thanks for the reply. Im a little confused on what to do and if this will do want im wanting. On the properties of my text box I have it set to the following:

-Dynamic Text  
-Multiline enabled  
-Render text as HTML  
-put a link in the URL link field ([www.yahoo.com](http://www.yahoo.com) for test)  
-For the AS I cleared out everything I used in tuturial and placed in the code you posted.

I guess what im trying to simulate in flash is the iframe tag in html. So being familiar with iframe in flash im assuming the text box would remain empty and the link the content from an external HTML page. I’ll upload the soure file if it will help any…

Thanks agian 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: [August 3, 2002, 10:15am UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-html/926/4 "2002-08-03T10:15:39Z")

</div>

🙂 Yes, please.

If someone has figured out how to load an html page like yahoo into a dynamic text box, I’m all ears!

I don’t believe HTML support went up much with MX over Flash 5, but I’m hoping I’m wrong. Am I wrong? If so, that alone would be worth the cost of the upgrade.

-K

---

<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: [August 4, 2002, 5:06am UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-html/926/5 "2002-08-04T05:06:22Z")

</div>

Ok, Im getting closer to achieving what I set out to do.

Doing some searching on [were-here.com](http://were-here.com) forums learned how to get blogger to interact with a dynamic text field in Flash…This is exactly what I need…Now I have one slight problem. Everything is working – Flash pulls in the txt file created and updated by blogger, however its not rendering the HTML. Im tryign to figure out how to make it interpret the HTML. I have read about this just not sure how to get it working.

Heres the example with downloadable source file:  
[http://www.byis.net/text.html](http://www.byis.net/text.html)

If anyone can help me out I would really appreciate it…Thanks in advance!!!

---

<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: [August 4, 2002, 6:00am UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-html/926/6 "2002-08-04T06:00:46Z")

</div>

```auto
loadText = new loadVars();
loadText.load("htmltexte.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
	scroller.html=true;
	scroller.htmlText = this.kirupatext;
};

```

Works perfectly 🙂

pom :asian:

---

<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: [August 4, 2002, 7:15am UTC](https://forum.kirupa.com/t/scrolling-dynamically-loaded-html/926/7 "2002-08-04T07:15:35Z")

</div>

Thanks pom! I swear I love this site…between the tuturials and the community on Kirupa I feel im picking up Flash in no time…

🙂

Now for the fun part – to learn AS so i understand the logic behind the code!
