# Loading html/dhtml in flash

**URL:** <https://forum.kirupa.com/t/loading-html-dhtml-in-flash/10121>\
**Category:** flash\
**Created:** [December 24, 2002, 6:48pm UTC](https://forum.kirupa.com/t/loading-html-dhtml-in-flash/10121 "2002-12-24T18:48:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![subsomthing](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@subsomthing](https://forum.kirupa.com/u/subsomthing)\
**Post date:** [December 24, 2002, 6:48pm UTC](https://forum.kirupa.com/t/loading-html-dhtml-in-flash/10121/1 "2002-12-24T18:48:32Z")

</div>

\<:} Ok check this i have been designing websites in flash for almost a year and i would say i know a decent amount about but here is my question…

Is it possible to load html documents with images, and dhtml into a flash file. I know you can load html into it but not only does it have alot of problems with text there are no images. And the formating always gets screwed up can you 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:** [December 24, 2002, 6:57pm UTC](https://forum.kirupa.com/t/loading-html-dhtml-in-flash/10121/2 "2002-12-24T18:57:46Z")

</div>

The answer is no, to my knowledge you can’t put an entire html/dhtml document with images into flash, but I also wish it was possible.

---

<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:** [December 25, 2002, 12:38am UTC](https://forum.kirupa.com/t/loading-html-dhtml-in-flash/10121/3 "2002-12-25T00:38:19Z")

</div>

You can’t load whole HTML documents into flash, and you can’t load HTML into Flash either. About the only HTML you can use in Flash is font formatting tags such as bold, italics, underlined, font face, font size, links, etc.

Only font formatting, nothing else.

---

<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:** [January 8, 2003, 8:52pm UTC](https://forum.kirupa.com/t/loading-html-dhtml-in-flash/10121/4 "2003-01-08T20:52:12Z")

</div>

:bad: thats what i fiqured that sucks beacuse you have much for features in html/dhtml with images  
oh well to bad

---

<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:** [January 8, 2003, 8:58pm UTC](https://forum.kirupa.com/t/loading-html-dhtml-in-flash/10121/5 "2003-01-08T20:58:31Z")

</div>

Well theres nothing with images you can do in HTML and DHTML that you can’d do with Flash 😉 It is just takes a little more to update.

---

<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:** [January 8, 2003, 8:59pm UTC](https://forum.kirupa.com/t/loading-html-dhtml-in-flash/10121/6 "2003-01-08T20:59:26Z")

</div>

Yes, I agree with Lost. :beam:

---

<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:** [January 13, 2003, 4:33pm UTC](https://forum.kirupa.com/t/loading-html-dhtml-in-flash/10121/7 "2003-01-13T16:33:47Z")

</div>

> \*Originally posted by lostinbeta \*  
> \*\*You can’t load whole HTML documents into flash, and you can’t load HTML into Flash either. About the only HTML you can use in Flash is font formatting tags such as bold, italics, underlined, font face, font size, links, etc.

Only font formatting, nothing else. \*\*

Hello. I read this thread from last year. Bummed about the HTML thing. So what is the best and easiest way to load preformatted text into Flash, most importantly the actual font (embedded?) so the viewer sees it the way it was designed? What info should the external text file have, and do you embed the font within Flash or from the text file? I’m a print designer - this is painful!

Oh, and this too: I simply can’t get my text to load into the dynamic box to begin with. Help appreciated.

\*\<:) Scottie

---

<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:** [January 13, 2003, 5:29pm UTC](https://forum.kirupa.com/t/loading-html-dhtml-in-flash/10121/8 "2003-01-13T17:29:24Z")

</div>

Well for loading text you can use this tutorial…

[http://www.kirupa.com/developer/mx/dynamic\_scroller.asp](http://www.kirupa.com/developer/mx/dynamic_scroller.asp)

And for HTML enabling the text box you can change the code in that tutorial to this…

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

```

This sets the textbox’s property to accept html, then tells the textbox to read the following text as html.

Some HTML tags that it accepts (that I can think of right off the top of my head) are…

```php

<A HREF="yourFile.html" TARGET="_blank">Text</A>
<B>Text</B>
<I>Text</I>
<U>Text</U>
<FONT FACE="Verdana" SIZE="#" COLOR="#000000">Text</FONT>

```

Keep in mind that the viewer must have the font installed on their computer to be able to see it.

You can define the font properties if you click on your textbox and open the properties of that textbox (CTRL+F3) and choosing it in there. If it is a font that most people will not have on their computer you must embed the font outline. In the properties of the textbox there is a button called “Characters…”, click on that then choose to embed the font outline for all characters.
