This is going to seem way too simple but it meets the minimum criteria in that it works well.
Basically create a button ... right-click on the button...select Actions ... double-click on Basic Actions/getURL
In the URL box at the bottom of the actionscript window type the following code:
javascript:window.close()
leave the "window" box blank
select "don't send"
When used in a popup window it will not send an alert that says "Do you really want to close this window?"
On a non-popup window it will send the alert.
It works equally well in either popup windows or regular windows. It also does well in HTML pages by specifying the javascript:window.close() in place of a normal link address.
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.