PDA

View Full Version : HTML within flash?


Apok
09-26-2003, 10:12 PM
So yeah, i guess there's no way to really do this like i hoped, but maybe someone can give me a suggestion?

I'm building a site all within flash, and i wanted for the buttons to launch a different html page into a frame in the center of the screen. I have it to where it will launch dynamic txt pages, but i need more than that. i made the text frame "html," and it will display links, but it freaks out at any text formatting.


i'm basically trying to recreate the feel of robzombie.com. so if anyone has any suggestions, it'd be greatly appreciated.


the site looks like this, and i intended for a somewhat transparent black box to hover in the middle and host the html, with the moons on the left being the buttons.
http://skullz.org/daysoffire/flash/background_all.jpg

so yeah, what do i do?

thanks!

Warrior
09-28-2003, 04:59 AM
Welcome to ActionScript.org :)

What do you want to do exactly? I am sorry but I don't understand what you mean...

Apok
09-29-2003, 01:31 AM
thanks.

i wanted to have a page that was entirely flash, but have a frame in the center of it that could load dynamic html pages.

the site is for a band, and this guy likes to be able to update info a lot himself.

but i think i've given up on it. i guess i'm going pure flash.

Xenozip
09-29-2003, 02:27 AM
Originally posted by Apok
I have it to where it will launch dynamic txt pages, but i need more than that. i made the text frame "html," and it will display links, but it freaks out at any text formatting. Exactly what kind of formatting are you trying to make?

Flash accepts HTML tags like <b> <i> <font> <pre>, etc.
Actually, the only HTML tags that I know of that it ignores are <sub> and <sup>. And as far as I know, it also accepts HTML Events, HTML ASCII, HTML URL-encode, and HTML Entities (like %a9 or &nbsp;).

If you're trying to display ascii or unicode (like ¾ ñ þ ê etc), then you have to embed the font.

Apok
09-30-2003, 11:20 PM
oh damn. since you said that, i went back and tried what i did before, and now its working!

i can get formatting tags to work fine, but <img src> is no dice. am i going to be able to get that to work?

annexion
10-01-2003, 12:38 AM
Not unless you're on Flash MX 2004.

Xenozip
10-01-2003, 01:15 AM
annexion is right.

So far, I've noticed that flash ignores <img>, <table>, <sub>, <sup>, and <center>. And I'm sure it ignores others (I try to avoid doing things externally).

Only way I think you'll be able to do it, is to import the image into your flash movie. Or have the movie load the image externally. Or have the flash movie on an html page, and have flash target the image that is in the page (and make it change the image using XML script).

I can't think of any other ways.. And getting it to align exactly where you want in the text would be a real pain, but might be possible with heavy duty scripting.