MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Especificações Página 220

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 369
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 219
Client-Side Communication ActionScript 29
Method summary for the LocalConnection object
Event handler summary for the LocalConnection object
Constructor for the LocalConnection object
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
myLC = new LocalConnection()
Parameters
None.
Returns
A reference to a LocalConnection object.
Description
Constructor; creates a LocalConnection object.
Example
The following example shows how a receiving and sending movie create LocalConnnection
objects. Note that the two movies can use the same name or different names for their respective
LocalConnection objects. In this example, they use the same name—
LC.
// code in the receiving movie
LC = new LocalConnection();
LC.someMethod = function()
{
// your code here
}
LC.connect("connectionName");
// code in the sending movie
LC = new LocalConnection();
LC.send("connectionName", "someMethod");
Method Description
LocalConnection.close Closes (disconnects) the LocalConnection object.
LocalConnection.connect Prepares the LocalConnection object to receive commands from a
LocalConnection.send command.
LocalConnection.domain Returns a string representing the subdomain of the location of the
current movie.
LocalConnection.send Invokes a method on a specified LocalConnection object.
Method Description
LocalConnection.allowDomain Invoked whenever the current (receiving) LocalConnection object receives a
request to invoke a method from a sending LocalConnection object.
LocalConnection.onStatus Invoked after a sending LocalConnection object tries to send a command to
a receiving LocalConnection object.
Vista de página 219
1 2 ... 215 216 217 218 219 220 221 222 223 224 225 ... 368 369

Comentários a estes Manuais

Sem comentários