You should use a popup because the popup wont ask for confirmation before closing but a normal window will.
So checkout the popup tutorial here:
Once you have your popup working I'll help you with the close command...
Please don't email or PM
me Flash questions, that's what the Forums are for!
Please don't rely on me reading my PMs either. Email me about important stuff.