HELP ME! Exit button problem

Hi all, I am trying to make an exit button for an .exe, and I cannot work out what actionscript to attribute to a button, can someone help? I have tried multiple scripts, and this is my current one:

on.press= function () {
fscommand(“quit”);}

I can’t see what is wrong with this, can someone please help!?

http://www.kirupa.com/developer/flash5/projectorcommands.htm

By the way… the event handler is [font=courier new]onPress[/font], so your code should read as follows:

onPress = function () {
fscommand("quit");
};

And welcome to kirupa forum. :slight_smile:

thanx, that helped, it’s now working well.

dubbelpost >:<

now, what was the point of that?