If you're putting it on the internet:
on(release){
getURL("javascript:self.close();");
}
Or getURL("javascript:CloseWindow();");
Don't know if you can set it to close the flash player though, so it will only work once you've uploaded the animation and you're viewing it in your browser.