MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 96

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 95
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
93
myInfo.setProperty("city", "San Francisco");
var names = sharedInfo.getPropertyNames();
for (x in names){
var propVal = sharedInfo.getProperty(names[x]);
trace("Value of property " + names[x] + " = " + propVal);
}
See also
SharedObject.getProperty()
SharedObject.size()
so.size()
Returns the total number of valid properties in a shared object.
Availability
Flash Communication Server 1
Returns
An integer indicating the number of properties.
Example
The following example gets the number of properties of a shared object and assigns that number to the variable
len:
var so = SharedObject.get("foo", true);
var soLength = so.size();
SharedObject.unlock()
so.unlock()
Allows other clients to update the shared object. A call to this method also causes the server to commit all changes
made after the
SharedObject.lock() method is called and sends an update message to all clients.
You cannot call the
SharedObject.unlock() method on proxied shared objects.
Availability
Flash Communication Server 1
Returns
An integer indicating the lock count: 0 or greater if successful; -1 otherwise. For proxied shared objects, this method
always returns -1.
Example
The following example unlocks a shared object:
var so = SharedObject.get("foo", true);
so.lock();
// Insert code to manipulate the shared object.
so.unlock();
See also
SharedObject.lock()
Vedere la pagina 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 154 155

Commenti su questo manuale

Nessun commento