I was wondering, is it possible to load a html file trough flash?
Let me clarify, lets say I have a flash movie and I only want to use this as a background for a website. Is there a way in flash to call the html file with text and images? This way all I have to do is to edit the html files.
I hope this makes sense, if something is unclear just ask me.
Yep, just use a textfield, set it to dynamic. Then click Render Text as HTML in properties or set the .html property to true. Then use Loadvars to load the html file and assign the variable into the textfield.htmlText property. Here's an example:
Just remember the following: You don't need all that header junk like <html> tags and such. At the beginning of your html file, above everything else put something like:
testText= where testText can be any variable name you choose. You can only use jpg and swf's for graphics embedded in the html. And the jpg's can't be progressive jpg's. Finally anchors "<a href='bla bla bla'>" will work but won't show as a different color unless you use font tags around them and specify to change the color of the text. ie. "<font color="#0000FF"><a href='bla.html'>Bla</a></font>"
andy: i know it's two weeks later but if your still wondering why your text is not loading, it's cause your script refers to an html file but your file is a txt file.
Hi!
I am trying to load the file... but it is not showing the right way. means it always show image at last... but my HTML have image in middle...
Is there any way to correct it? i am using Flash ver-8.0
waiting for reply.
i am attaching FLA, Jpeg and html file...
But the html file is changed to .txt
please change it to html before using the files...
Thanks...