Application.exitWithCode() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to Application Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.Application.exitWithCode(exitCode:Number):void

Parameters
exitCode:Number - An integer number with value between 0 and 255

Returns
Nothing

Description
Exits the Projector and sets the System Exit Code to the value defined in exitCode. That way you could launch application from other process (e.g. from system console/terminal) and when application quits it will sets exit code that could be read by original process for further processing

Notes
This command should only be used by experienced developers who need to set a System Exit Code when their Projector Exits.

Example Code
// define some constants to denote application process state
const EXIT_CODE_NO_ERR:int = 0;
const EXIT_CODE_INVALID_INPUT_ERR:int = 1;
const EXIT_CODE_TIMED_OUT_ERR:int = 200;
//
// later use constants to output current state on application exit
// e.g. no error state
mdm.Application.exitWithCode(EXIT_CODE_NO_ERR);
// or hardcoded: mdm.Application.exitWithCode(0);

mdm.Application Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page