See also
LocalConnection.send()
LocalConnection.send()
Availability
Flash Player 6.
Usage
sending_lc.send (connectionName, method [, p1,...,pN])
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 of
Note: A return value of
receiving LocalConnection object, only that the command is syntactically correct. To determine
whether the connection succeeded, see LocalConnection.onStatus.
Description
Method; invokes the method named
LocalConnection.connect(connectionName)
LocalConnection 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 machine.
There is a limit to the amount of data you can pass as parameters to this command. If the
command returns
LocalConnection.send()
As discussed in the entry
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
accepted. This implementation lets you store your sending and receiving SWF files in
any domain.
444
Chapter 12: ActionScript Dictionary
,
System.onStatus
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 breaking up the
false
requests into multiple commands.
LocalConnection.connect()
by default. If you are implementing communication between different
connectionName
. There are two ways you can do so:
to specify that connections from any domain will be
.
allowDomain
false
on a connection opened with the
command (called the "receiving
, Flash adds the current superdomain to
in both the sending and receiving
in both the sending and
connectionName
sending_lc
send
otherwise.
.
,
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers