How do I close a window?

I want my swf to close itself when I click on certain buttons… I couldn’t find it through the reference book =( could someone help plz?

Are you closing a browser window or a projector file?

Well I gotta go now, so here’s both methods…

Browser Window:
[AS]on (release) {
getURL(“window.opener=null; window.close(); return false”, “_self”);
}[/AS]
Projector File:
[AS]on (release){
fscommand(“quit”);
}[/AS]

ahh, thank you.