
LocalConnection.send() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
598
|
ActionScript Language Reference
// Display whether the connection succeeded
receiveOutput_txt.text = "Receiver connection succeeded: " + connectSuccess + "\n";
See Also
LocalConnection.allowDomain( ), LocalConnection.connect( ), LocalConnection.domain( ),
LocalConnection.send( )
LocalConnection.send() Method
invoke a method on a remote LocalConnection object
Flash 6
localConn.send(connectionName, methodName, arg1, arg2,...argn)
Parameters
connectionName
The string name of the connection on which to invoke
methodName, as set by
the receiver’s connect( ) method.
methodName
The string name of the method to invoke on the receiver. Must not be one of
the following reserved words: “send”, “connect”, “close”, “domain”,
“onStatus”, or “allowDomain”.
arg1, ...argn
Optional arguments to pass to
methodName.
Returns
A Boolean—true if the send( ) structure is syntactically correct, otherwise false.
Description
The send( ) method sends a request to invoke the methodName at the connection specified by
connectionName. The send( ) method can transfer a maximum of 40 KB of data. The
optional arguments passed can be any datatype (Boolean, object, number, etc.). If an object
is sent, its class is retained only if it is registered on both sides of the LocalConnection using
Object.registerClass( ...