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: function () {

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

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

onPress = function () {

And welcome to kirupa forum. :slight_smile:

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

dubbelpost >:<

now, what was the point of that?