Javier Illo
Javier Illo

Reputation: 11

How to close a window on haxe / openfl / lime / flixel / neko

I want to make a function to close a program after pressing a button, but I don't know how to close the program. I use neko by the way.

I searched into the inter, but I didn't found anything that works or it only worked on flash or html5.

Upvotes: 0

Views: 70

Answers (1)

Javier Illo
Javier Illo

Reputation: 11

I found a way to exit a program on lime.

First, you need to type:

import lime.system.System;

And then, on the line that you want to exit, Use:

System.exit(0);

The "(0)" means the time that the program wait to close.

Upvotes: 1

Related Questions