all groups > flash actionscript > january 2006 >
You're in the

flash actionscript

group:

Close Browser Button


Close Browser Button Park6798
1/14/2006 9:31:53 PM
flash actionscript:
With Flash MX, I was able to use the actionscript below on a button to close
the browser window. I'm now trying to use the same code in Flash Professional
8 on a button, but the browser window does not close - it just flashes and
reappears. What am I doing wrong?

on (release) {
getURL("javascript:window.close(),", "_self");
}
Re: Close Browser Button caroline elisa
1/31/2006 1:00:55 PM
i have used this code below with some success.

however it does not work in firefox or safari.

on (release) {
getURL("javascript:window.opener=self; window.close()");
}

AddThis Social Bookmark Button