Close browser window from within .swf

Hello To All:
I’m a newbie to Kirupa, and a light-weight with Flash,
but with some success so far.
I’m stuck on trying to close the browser window from within my .swf file.
Have tried:
on (press) {
getURL(“javascript:window.close();”, “_self”);
}
and
on (press) {
getURL(“javascript:window.close();”);
}
and lots of variations on this code, but nothing works.

The application is an .swf which contains a ‘loadMovie’ button
to daisy-chain to the next file. (Travelling thru China)
I want to add a button which will close the browser window
which I opened originally from an .html page.
I’ve been at it for about a day and a half, with no luck.
I’m sure it’s something I’ve overlooked, and appreciate any help.
Thanks,
Vince G.