MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spécifications Page 222

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 369
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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)
Vue de la page 221
1 2 ... 217 218 219 220 221 222 223 224 225 226 227 ... 368 369

Commentaires sur ces manuels

Pas de commentaire