Close or exit a flash movie

bit of a noob question but never actually done this before

I’ve produced a flash movie as an exe that will be put on to a cd. The movie will have a quit option at the end but I’m not sure what the actual actionscript behind the button should be…

I’ve tried

on(release){
close();
}

but it didn’t work and I’ve searched round the net but can’t find the actionscript I need.

Anyone know?