MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Especificaciones Pagina 284

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 369
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 283
Client-Side Communication ActionScript 93
Returns
A reference to an object that can be shared across multiple clients. If Flash cant create or find the
shared object (for example, if a local path was specified for
persistence but no such directory
exists), returns null.
Description
Method; returns a reference to an object that can be shared across multiple clients by means of the
Flash Communication Server. To create a shared object that is available only to the current client,
use
SharedObject.getLocal.
After issuing this command, use
SharedObject.connect to connect the object to the Flash
Communication Server, as shown below.
con = new NetConnection();
con.connect("rtmp://somedomain.com/applicationName");
myObject = SharedObject.getRemote("mo", con.uri, false);
myObject.connect(con);
To confirm that the local and remote copies of the shared object are in sync, use the
SharedObject.onSync event handler.
All clients that want to share this object must pass the same values for
objectName and URI.
Understanding persistence for remote shared objects. By default, the shared object is not
persistent on the client or server; that is, when all clients close their connections to the shared
object, it is deleted. To create a shared object that is saved locally or on the server, pass a value for
persistence.
Once a value has been passed for the local persistence of a remote shared object, it is valid for the
life of the object. In other words, once you have gotten a remote shared object which is not
locally persistent, you cannot get the same shared object with local persistence while the shared
object is active.
For example, the second line of code in the following example does not get a locally persistent
remote shared object.
// Get a remote shared object (so1) that is persistent
// on the server but not on the client
so1 = SharedObject.getRemote("someObject", nc_uri, true);
// Get a remote shared object (so2) with the same name and path
// as so1, but with local persistence.
// so2 will just point to the same object as so1, and an onStatus
// message will be invoked for so2 with the "code" value of the
// information object set to "SharedObject.BadPersistence".
so2 = SharedObject.getRemote("someObject", nc.uri, "somePath");
Also, remote shared objects that are not persistent on the server are created in a different
namespace from remote shared objects that are persistent on the server. Therefore, if the following
line of code is added to the above example, no SharedObject.BadPersistence error will result
because
so3 does not point to the same object as so1.
so3 = SharedObject.getRemote("someObject", nc.uri, false);
Vista de pagina 283
1 2 ... 279 280 281 282 283 284 285 286 287 288 289 ... 368 369

Comentarios a estos manuales

Sin comentarios

Panasonic KXTGA721E manuali

Manuali dei proprietari e guide per l'utente per Cornette per telefono Panasonic KXTGA721E.
We fornisce 1 manuali pdf Panasonic KXTGA721E per scaricare gratuitamente in base al tipo di documento: Manuale Utente






Più prodotti e manuali per Cornette per telefono Panasonic

Modelli Tipo di Documento
KXTGA820 Manuale Utente    Panasonic KXTGA820 User manual, 16 pagine
KXTGA661E Manuale Utente   Panasonic KXTGA661E User manual, 10 pagine
KXTGEA20 Manuale Utente    Panasonic KXTGEA20 User manual, 16 pagine
KXTGA660 Manuale Utente    Panasonic KXTGA660 User manual, 16 pagine
KXTG5664 Manuale Utente   Panasonic KXTG5664 User manual, 8 pagine
KXTG5767 Manuale Utente   Panasonic KXTG5767 User manual [en] , 10 pagine
KXTGDA20 Manuale Utente    Panasonic KXTGDA20 User manual, 16 pagine
KXTG5779 Manuale Utente   Panasonic KXTG5779 User manual, 10 pagine
KXTH111 Manuale Utente   Panasonic KXTH111 User manual, 8 pagine
KXTGA930 Manuale Utente    Panasonic KXTGA930 User manual, 16 pagine
KXTGA630 Manuale Utente    Panasonic KXTGA630 User manual, 16 pagine
KXTG6021 Manuale Utente   Panasonic KXTG6021 User manual, 8 pagine
KXTG9471 Manuale Utente   Panasonic KXTG9471 User manual, 6 pagine
KXTG5776 Manuale Utente   Panasonic KXTG5776 User manual, 10 pagine
KXTG2632 Manuale Utente   Panasonic KXTG2632 User manual, 8 pagine
KXTGA820 Manuale Utente    Panasonic KXTGA820 User manual, 16 pagine
KXTGA807E Manuale Utente   Panasonic KXTGA807E User manual [de] , 8 pagine
KXTGA910E Manuale Utente   Panasonic KXTGA910E User manual, 12 pagine
KXTGA430 Manuale Utente    Panasonic KXTGA430 User manual, 16 pagine
KXTG8232 Manuale Utente   Panasonic KXTG8232 User manual, 8 pagine