• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

iFrame like Feature

New Here ,
Aug 05, 2012 Aug 05, 2012

Copy link to clipboard

Copied

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)?

TOPICS
ActionScript

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 05, 2012 Aug 05, 2012

Copy link to clipboard

Copied

what is it about htmlloader that doesn't work for you?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 06, 2012 Aug 06, 2012

Copy link to clipboard

Copied

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;

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 06, 2012 Aug 06, 2012

Copy link to clipboard

Copied

that should work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 06, 2012 Aug 06, 2012

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 06, 2012 Aug 06, 2012

Copy link to clipboard

Copied

LATEST

that looks like a javascript error.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines