Enquiry on the closing the swf screen by action scripts?

Is there some codes whereby i can implement on a button to allow closing of the swf screen… something like pressing the “X” on the top right of windows browser??