Description
Process the Windows messages of the application or screen saver.
Syntax
processMsg()
Parameters
Returns
Boolean. If the user has taken an action to close the application by clicking the close button, pressing the "ALT+F4" keys, etc, the method returns false; otherwise, it returns true.
Remarks
The method is used to avoid the blocking of the application while executing a script takes times. The method peeks messages from the message queue of the main thread of the application, then translates the messages and dispatches them. Users inputs just like key presses or mouse clicks during the executing of the script will be handled by this method. If the method returns false, you should return from the script and the main process of the application will stop.
Example
var i = 0;
while (1)
{
trace(i++);
if (!processMsg())
break;
}