This content has been marked as final.
Show 5 replies
-
1. Re: working fine in IE not in firefox???
Greg Dove Nov 27, 2007 4:57 AM (in response to AScracker)This *might* help, might not. Haven't tested it
getURL("javascript:window.opener=self;self.close();")
Also make sure that your html/javascript embedding settings include "allowscriptaccess","sameDomain"
(that's the default, so unless you did something different it should be OK). -
2. Re: working fine in IE not in firefox???
Greg Dove Nov 27, 2007 5:06 AM (in response to AScracker)Also you should probably change the name of this topic. You are not trying to close the swf file. You are trying to close the browser window. I was trying to clarify that in your other post for the same topic. -
3. Re: working fine in IE not in firefox???
AScracker Nov 27, 2007 5:07 AM (in response to Greg Dove)HI GWD,
Thanks for ur reply after changing the code...
But it's not working...in Firefox....
~~SK -
4. Re: working fine in IE not in firefox???
Greg Dove Nov 27, 2007 5:15 AM (in response to AScracker)I'm not sure exactly what the problem might be without running a test in firefox.
I would probably also try something like:
getURL("javascript:function closeWindow(){window.close()}");
setTimeout(function(){ExternalInterface.call("closeWindow")},600);
to see if that works. It may not and it might be something else entirely. -
5. Re: working fine in IE not in firefox???
AScracker Nov 27, 2007 9:46 PM (in response to Greg Dove)Hi,
I'm trying to figure out what I'm missing! I've added a close button to a Flash Player 8 file that is running in a browser window. When the user clicks the close button I want the browser window to close. The code on my button that
I've tried is:
getURL("javascript:window.close();");
and
getURL("javascript:window.open('','_parent','');window.close();");
and
getURL("javascript:window.opener=self; window.close()");
None of these will close either a Safari or a Firefox window, but it works in
IE. Am I missing something?
~~SK

