PDA

View Full Version : navigateToURL stay in the same window


finecur
02-27-2008, 06:03 AM
Hi all:

If I use navigateToURL('someURL'), it will a new browser window. Is there a way I can load 'someURL' in the same browser window of my application?

Thanks,

ff

fnx
02-28-2008, 11:35 AM
Hi, i use this in my apps and it works perfectly

navigateToURL(new URLRequest("http://...."), "_blank"); //open in new win
navigateToURL(new URLRequest("http://...."), "_self"); //open in the same win

Hope this helps :)

FNX

corpsinhere
11-20-2010, 07:24 PM
@fnx:
Simple and exactly what I needed - thanks!

seshu_roy
06-22-2011, 11:24 PM
How to close the child window from parent after using navigateToURL(url,"_blank")?

Barna Biro
06-23-2011, 10:53 AM
You can't close any child window from ActionScript. At most, you could try playing around with Javascript and see how you can call Javascript functions from your application ( using the ExternalInterface ) and in turn, that Javascript should try to close the window you want.