Bill's method should work on IE but not on others such as Firefox. The hack is:
[tt]
getURL("javascript: window.open('','_parent',''); window.close();");
[/tt]
So you have to first determine the browser; if it's IE use Bill's and if not use this.
And I am not promoting closing the browser in any way, oldnewbie! (I hate auto resizing.)
System.capabilities.playerType returns "PlugIn" if the SWF is played back in the Netscape plug-ins (Firefox etc) and "ActiveX" if it's played in the IE ActiveX control. So in theory you can use that. But usually people go for Javascript option. Just Google "javascript browser detection" and you'll get hundreds of scripts to choose from.
The only thing w/ the Javascript browser detection is that you would have to throw in the browser detection information to the swf when it's loaded in order to know which getURL close method to use.
The only way I can think to do this is use a server script like php and the sendAndRecieve method.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.