Loading html/dhtml in flash

<:} 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.

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.

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.

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

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

Yes, I agree with Lost. :beam:

*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

Well for loading text you can use this tutorial…

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…

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…


<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.