Available on AIR, Android, Flash, Linux, Neko, Windows, iOS, macOS
This event is dispatched by the NativeProcess object when the process exits. It is possible that this event will never be dispatched. For example, if the child process outlives the OpenFL application that created it, the event will not dispatch.
new(type:String, bubbles:Bool = false, cancelable:Bool = false, ?exitCodeValue:Float)
Creates a NativeProcessExitEvent which contains specific information regarding a NativeProcess's exit code.
The type of the event, accessible as
Determines whether the Event object participates in the bubbling stage of the event flow.
Determines whether the Event object can be canceled.
Number that the process returned to the operating system during exit.
The exit code that the native process returned to the host operating
system when exiting. If the OpenFL application terminates the process
by calling the
exit() method of the NativeProcess object, the
exitCode property is set to
NOTE: On Windows operating systems, if the process has not exited
but the runtime is exiting or an error occurred, this value may be set
259 (STILL_ACTIVE). To avoid confusion of this condition, do not
259 as a return code in a native process.