Skip to main content
Known Participant
February 7, 2014
Question

navigateToURL inside HTMLLoader

  • February 7, 2014
  • 1 reply
  • 1079 views

Hello guys,

I need help on this.

An HTMLLoader is loading a SWF.

Inside that SWF at some point the user can press a button to invoke a navigateToURL.

That navigateToURL is opening an URL to a report.

If the loaded SWF is used directly inside a browser it works (opens a new window in the browser), but when loaded in the HTMLLoader it doesn't work.

How can I call with success a navigateToURL inside HTMLLoader?

The loaded SWF could be not compiled in AIR (because it is also used in browser).

This topic has been closed for replies.

1 reply

Ned Murphy
Brainiac
February 7, 2014

If you are loading an swf you can just use the Loader class.

croxoverAuthor
Known Participant
February 7, 2014

Thank you Ned for your reply.

I think I can't use a loader.

My hierarchy is:

Native Window -> HTMLLoader -> SWF -> open link

In some situations is:

Native Window -> HTMLLoader -> SWF -> SWF -> open link

I want to open the link on a browser, but it looks like since the SWF is HTMLLoader wrapper I can't do that.

The link I'm trying to open is somethink like: http://domain.com/docs//docprint.aspx?id=01&year=2014

Ned Murphy
Brainiac
February 7, 2014

I do not see/understand how your hierarchy prevents you from using a Loader.  HAve you tried it?  Normally an HTMLLoader is used for loading an HTML page into an swf, but I don't see that in what you describe.