Skip to main content
Participant
August 20, 2017
Question

How to navigate to URL from Flex application contained within an AIR wrapper?

  • August 20, 2017
  • 1 reply
  • 544 views

I have a Flex application loaded into AIR with an htmlLoader. The Flex application displays a link that when clicked, calls navigateToURL(...) and displays a new browser window. This functionality works with the Flex application, however it does nothing when wrapped in AIR. Any thoughts? Thanks.

This topic has been closed for replies.

1 reply

Inspiring
August 20, 2017

first, check navigateToURL() errors like IOError and SecurityError,
second, check HTMLHost.createWindow() in relation with HTMLWindowCreateOptions


eg.

By default, a JavaScript call to window.open() in the HTML page of an HTMLLoader does not open an new NativeWindow object in the runtime. You can open a new NativeWindow object in the runtime by creating a new NativeWindow object in the createWindow method override in the subclass of the HTMLHost class.