Use ExternalInterface to call javascript code in the html wrapper that
actually opens the new window, don't use navigateToURL().

 

This is basically the same as what you are doing, but using the existing
html wrapper window to launch the new window.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of olearix
Sent: Friday, May 08, 2009 8:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Communication between SWF and HTML Window - CloseEvent

 






Hi,

For one of my flex project, I have to communicate with an HTML Window popup.
To open it, it's not a problem, but specificaly I have to add a listener to
catch event when this Window close.

I saw that you can communicate with your own HTML page by integrating some
JavaScript functionnalities, but the problem is that I have to open an
external window that is not mine.

I have got a "dirty" solution but I don't like it: open one own window popup
wich contains JavaScript function to communicate with swf, and this window
will open the desired window that I want to listen. When This window close,
my own window catch the event and dispatch it to swf throw JS function. I
don't know if my explication are very clear, but that is the idea and I
don't like it.

Please if somebody can tell me if it's possible to catch a closer event of
an external window?

Thanks for your answerds

Xavi



Reply via email to