LocalConnection.send()
Availability
Flash Player 6.
Usage
sending_lc.send (connectionName:String, method:String [, p1,...,pN]) : Boolean
Parameters
connectionName
LocalConnection.connect()
A string specifying the name of the method to be invoked in the receiving
method
LocalConnection object. The following method names cause the command to fail:
,
connect
close
Optional parameters to be passed to the specified method.
p1,...pN
Returns
A Boolean value:
Note: A return value of
receiving LocalConnection object; it means only that the command is syntactically correct. To
determine whether the connection succeeded, see
Description
Method; invokes the method named
LocalConnection.connect(connectionName)
object). The object used with this command is called the sending LocalConnection object.
The SWF files that contain the sending and receiving objects must be running on the same
client computer.
There is a limit to the amount of data you can pass as parameters to this command. If the
command returns
requests into multiple commands.
As discussed in the entry LocalConnection.connect(), Flash adds the current superdomain to
connectionName
domains, you need to define
LocalConnection objects in such a way that Flash does not add the current superdomain to
connectionName
•
Use an underscore (_) at the beginning of
receiving LocalConnection objects. In the SWF file containing the receiving object, use
LocalConnection.allowDomain
This implementation lets you store your sending and receiving SWF files in any domain.
A string that corresponds to the connection name specified in the
command that wants to communicate with
,
,
, and
domain
onStatus
if Flash can carry out the request;
true
does not necessarily mean that Flash successfully connected to a
true
method
but your syntax is correct, try dividing the
false
by default. If you are implementing communication between different
connectionName
. You can do this in one of the following two ways:
to specify that connections from any domain will be accepted.
.
allowDomain
false
LocalConnection.onStatus
on a connection opened with the
command (the receiving LocalConnection
in both the sending and receiving
in both the sending and
connectionName
sending_lc
send
otherwise.
.
LocalConnection.send()
LocalConnection.send()
.
,
417
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers