MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spezifikationen Seite 222

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 221
Client-Side Communication ActionScript 31
In the following example, the receiving movie accepts commands only from movies located in
thisDomain.com or thatDomain.com.
var aLocalConnection = new LocalConnection();
aLocalConnection.Trace = function(aString)
{
aTextField = aTextField + aString + newline;
}
aLocalConnection.allowDomain = function(sendingDomain)
{
return(sendingDomain=="thisDomain.com" || sendingDomain=="thatDomain.com");
}
aLocalConnection.connect("_trace");
See also
LocalConnection.connect, LocalConnection.domain, LocalConnection.send
LocalConnection.close
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
receivingLC.close
Parameters
None.
Returns
Nothing.
Description
Method; closes (disconnects) a LocalConnection object. Issue this command when you no
longer want the object to accept commands—for example, when you want to issue a
LocalConnection.connect command using the same connectionName parameter in
another movie.
See also
LocalConnection.connect
LocalConnection.connect
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
receivingLC.connect(connectionName)
Seitenansicht 221
1 2 ... 217 218 219 220 221 222 223 224 225 226 227 ... 368 369

Kommentare zu diesen Handbüchern

Keine Kommentare