Apollo Lessons #1: how to add HTML to Apollo applications
Today at the Leveraging HTML, Javascript and AJAX in Apollo applications session, we learned how to embed HTML code into Apollo and how to launch an URL.
So I want to share what I've learned on my blog :
private var htmlObj:HTMLControl = new flash.html.HTMLControl();
html.width = 100;
html.height = 100;
html.loadFromURLRequest(new flash.net.URLRequest(http://casario.blogs.com);
Simple as the beer !
They told that HTMLControl class is like an IFRAME but it's hosted by Flash content.
The HTML content will be rendered as root content in a window with no browser chrome !
Cooool !
Stay tuned, I've more lessons to publish ;)





























MAn that looks cool like its going to be cool. Did you catch if the actionscript can control elements withing the html?
Posted by: Campbell | October 25, 2006 at 10:20 PM
Wish the same was as easy in non-Apollo Flex apps, if only for better handling of editable text.
Posted by: Hans | October 25, 2006 at 11:31 PM
>> MAn that looks cool like its going to be >>cool. Did you catch if the actionscript >>can control elements withing the html?
See my next post :)
Posted by: Marco Casario | October 26, 2006 at 02:06 AM
Neat thaat we can load it as root.
Posted by: Chris Charlton | October 26, 2006 at 07:36 PM
Hello
Posted by: drearm | March 20, 2008 at 08:08 PM