ssCore.Sentry.addToWhiteList

Specify an application that SWF Studio should NEVER prevent from running. This function can't be called while the Sentry is enabled.


Availability:

First available in version 3.8 build 333.


Input Parameters:

application - The name of the application you want to add to the white list, without the path, but including the extension, e.g. 'notepad.exe'.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Sentry.addToWhiteList( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Sentry.addToWhiteList( paramsObject );


Notes:

None.


Examples:

// you MUST build an initial white list before you can use the white list
ssCore.Sentry.buildWhiteList({});

// optionally, add more applications to the white list
var r:Object = ssCore.Sentry.addToWhiteList({application:"notepad.exe"});
if (r.success) ssDebug.trace("okay, added notepad.exe");

// tell Sentry to use the white list
ssCore.Sentry.useWhiteList({});

// enable the Sentry
ssCore.Sentry.enable({});