Does anybody know how to make a Flash button close the HTML document that contains the SWF. You know, one of those "Close this Window" type of buttons.
Thanks!
Printable View
Does anybody know how to make a Flash button close the HTML document that contains the SWF. You know, one of those "Close this Window" type of buttons.
Thanks!
code:
...
Won't work without a warning if it's the user's main browser window.
Yeah, I have it as a pop up window. that covers the main HTML page that I have. It covers the whole thing and I have a button to make the pop up HTML page dissapear. Do you know of a way to make that work?
This bit of code has worked for me...
code:
on (press) {
getURL("javascript: window.opener=self; window.close();");
}
I've never seen a warning pop up while using it (but that's not to say there won't ever be one).