MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Dokumentacja Strona 222

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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)
Przeglądanie stron 221
1 2 ... 217 218 219 220 221 222 223 224 225 226 227 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag