MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manuel d'utilisateur Page 64

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 80
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 63
64
Example
This example gets the number of properties of a shared object and assigns that number to the
variable
len:
var myShared = SharedObjecd.get(application, "foo", true);
var len = myShared.size();
SharedObject.unlock
Availability
Flash Communication Server MX.
Usage
mySharedObject.unlock()
Parameters
None.
Returns
An integer indicating the lock count: 0 or greater if successful, -1 otherwise. For proxied shared
objects, this method always returns -1.
Description
Method; unlocks a shared object instance. This causes the script to relinquish exclusive access to
the shared object and lets other clients update the instance. 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 use the
SharedObject.unlock method on proxied shared objects.
Example
This example illustrates how easy it is to unlock a shared object.
var myShared = SharedObject.get("foo", true);
myShared.lock();
// insert code to manipulate the shared object
myShared.unlock();
See also
SharedObject.lock
SharedObject.version
Availability
Flash Communication Server MX.
Usage
SharedObject.version
Description
Property (read-only); the current version number of the shared object. Changes made to the
shared object either by the Flash Player client or by the server-side script using the
SharedObject.setProperty method increment the value of the version property.
Vue de la page 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 79 80

Commentaires sur ces manuels

Pas de commentaire