Button to close window CS3

First time poster, fairly new to flash. Especially ActionScript3.

I am finishing off some work and not sure what code is required on CS3 to close the flash player window by the click of a button.

Any help is much appreciated!

:thumb2: