March 02, 2004

XHTML & Flash

After doing some tinkering with XHTML today, I realized that you can load valid XHTML pages right into the Flash XML object, since XHTML is in fact a standard XML file (as long as it's well-formed). For all I know, this was obvious to everyone else but me. I haven't worked much with XHTML.

I had seen the Flash-based DENG XHTML browser before, but didn't know much about how it worked.

I just thought it was cool that you can load any XHTML-compliant webpage code right into Flash using a standard XML.load, and with a quick .toString() command, toss it into any HTML-enabled text field in your movie. I guess you would be subject to the same security issues as loading other XML files, but just testing my movie from the IDE lets me load the www.xhtml.org homepage as an XML object with no problem.

You could load normal HTML with LoadVars, too, but now you have an XML object, so you could parse through the nodes within the content if you needed to.

Posted by andy at March 2, 2004 02:40 PM
Comments

You helped me a much! Thnx :)

Posted by: Philip Seyfi at April 5, 2006 02:59 PM
Post a comment