Prompting dialogue box

i hav a swf file with a EXIT button.
if i click EXIT button, a dialogue box will prompt n ask me whether confirm to exit or not.
If yes, then my swf file will close.
how can i do that…i really no idea.
pls help

I don’t understand what you’re saying, do you have code that works already? That’s what your post makes me think, where’s your problem?

i mean a page contain a ‘exit’ button…
if the user click on that button…a window will pop up and ask the user whether confirm to exit that swf file…
if the user click OK button…then evrything stop showing