Can I place an iFrame like window within a Flash file? I've seen some references to HTMLLoader but haven't found anything definitive yet. Also would be it compatible with mobile devices (Air 3.2 for iOS)?
I think I found what I needed in the StageWebView command actually. My code below is working although I'm not sure if it's "clean" at this point. I'm basically just trying to show, hide, and then show again a StageWebView.
var webView:StageWebView = new StageWebView();
// show the webView
show_btn.addEventListener(MouseEvent.MOUSE_UP, goGoogle);
function goGoogle(event:MouseEvent):void
{
webView.stage = this.stage;
webView.viewPort = new Rectangle(20,20,stage.stageWidth,stage.stageHeight);
webView.loadURL("http://www.google.com");
}
/hide the webView
hide_btn.addEventListener(MouseEvent.MOUSE_UP, hiding);
function hiding(event:MouseEvent):void
{
webView.stage = null;
}
When I try to view some web pages through the StageWebVIew method, I get the following error:
This browser does not support some of the content in the file you are trying to view. Use one of the following browsers:
- iE9 or later
- Safari 5.1 or later
- Google Chrome 17 or later
The web pages still work, and the page I'm viewing is in HTML 5, but I wish I didn't get that error. In the output panel I get the following text:
TypeError: Result of expression 'a.load' [undefined] is not a function.
at http://keytwodesign.com/Office365/Basics/Sim0/assets/js/CPLibrary.js : 16548
at http://keytwodesign.com/Office365/Basics/Sim0/assets/js/CPLibrary.js : 16978
CPPreInit at http://keytwodesign.com/Office365/Basics/Sim0/assets/js/CPLibrary.js : 23062
DoCPInit at http://keytwodesign.com/Office365/Basics/Sim0/ : 113
North America
Europe, Middle East and Africa
Asia Pacific