mApplication.onMessage()

Availability

Windows: Flash 8 or 9 AS2.0 swf + mProjector 3.1.0

Macintosh: Not Yet Available

Usage

mApplication.onMessage = function (arguments:Array) {
   // your statements here
}

Parameters

arguments

Returns

Nothing.

Description

Event handler; An event handling function called when the application is called by another mProjector application via the mApplication.sendMessage() command.

Example

This example joins the array of strings received by the onMessage command and traces them to the trace viewer.

mApplication.onMessage = function(args:Array) {
	mApplication.trace("received message");
	var msg = args.join(" ");
	mApplication.trace(msg );
}

See Also

mApplication.sendMessage()

Code Examples

http://www.screentime.com/downloads/mp/code/sendMessage.zip