MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 720

Actionscript 2.0 language reference
Table of Contents

Advertisement

If you are implementing communication between SWF files in different domains, specifying a
string for
connectionName
receiving LocalConnection object more portable between domains. Here are the two possible
cases:
If the string for
connectionName
adds a prefix with the superdomain and a colon (for example,
"myDomain:connectionName"
conflict with connections of the same name from other domains, any sending
LocalConnection objects must specify this superdomain (for example,
"myDomain:connectionName"
moved to another domain, the player changes the prefix to reflect the new superdomain
(for example,
"anotherDomain:connectionName"
objects would have to be manually edited to point to the new superdomain.
If the string for
connectionName
"_connectionName"
the receiving and sending LocalConnection objects will use identical strings for
connectionName
that connections from any domain will be accepted, the SWF with the receiving
LocalConnection object can be moved to another domain without altering any sending
LocalConnection objects.
For more information, see the discussion of
and also the
LocalConnection.allowDomain
Colons are used as special characters to separate the superdomain from the
connectionName
Availability: ActionScript 1.0; Flash Player 6
Parameters
connectionName:String
LocalConnection.send()
Returns
- A Boolean value:
Boolean
already issued this command using the same value for the
otherwise.
720
ActionScript classes
that begins with an underscore (_) will make the SWF with the
does not begin with an underscore (_), Flash Player
). Although this ensures that your connection does not
). If the SWF with the receiving LocalConnection object is
begins with an underscore (for example,
), Flash Player does not add a prefix to the string. This means that
. If the receiving object uses
string. A string for
connectionName
- A string that corresponds to the connection name specified in the
command that wants to communicate with
if no other process running on the same client computer has
true
). All sending LocalConnection
LocalConnection.allowDomain
in
connectionName
and
LocalConnection.domain()
that contains a colon is not valid.
connectionName
to specify
LocalConnection.send()
entries.
receiving_lc
parameter;
.
false

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF