/14/ inter-movie communication (LocalConnection)

// =============CODE IN THE RECEIVER MOVIE============
// Create the connection object.
receiveConn = new LocalConnection();

// Define methods to invoke remotely. Must be done
// before connecting.
receiveConn.methodName = function (param1, param2) {
  // statements
}

// Open a connection and specify a name for it.
receiveConn.connect("connectionName");



// =============CODE IN THE SENDING MOVIE=============
// Create the connection object.
sendConn = new LocalConnection();

// Invoke methodName() remotely over "connectionName",
// passing two values as arguments.
sendConn.send("connectionName", "methodName", "value1", "value2");