MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifikace Strana 222

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 369
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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)
Zobrazit stránku 221
1 2 ... 217 218 219 220 221 222 223 224 225 226 227 ... 368 369

Komentáře k této Příručce

Žádné komentáře