Is it possible to apply actionscript to a button that when pressed will close an .SWF file?

(example as to why one may want to use this action: Someone is watching a movie you’ve made to open and play in fullscreen mode. They may be unaware of the need to press the ESC key to reduce the window at the end of the movie. The button would give them an obvious and easy escape route.

If this can be produced, and you’re up for it, would you please run me through the complete procedure (bearing in mind I’m a Flash novice) of what the script is and how/where to apply it to perform this action?

Thanks in advance.