Callback Function

The callback function is a function you specify in the callback parameters object. The callback function is called when SWF Studio returns data from an asynchronous command using the ActionScript API.

The callback function receives three arguments: a return object, a callback return object, and an error return object. Each of these arguments is an object that contains various properties you can access.

Example 1: a simple callback function

ssCore.Win.getPosition({}, {callback:onComplete});

function onComplete(return_obj, callback_obj, error_obj)
{
    ssCore.App.showMsgBox({prompt:return_obj.x + "," + return_obj.y});
}