MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spécifications Page 344

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 369
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 343
44
Parameters
None.
Returns
Returns true if successful; false otherwise.
Description
Method; deletes all properties and sends a clear” event to all clients that subscribe to a persistent
shared object. The persistent data object is also removed from persistent shared object. You can
use
SharedObject.clear to detach from a shared object immediately after SharedObject.get
is invoked. You can use SharedObject.clear when you do not want to use a shared object
anymore and want to remove it from the server completely. This method lets you create shared
objects that persist only for a specified time.
Example
The following example calls the clear method on the shared object myShared:
var myShared = SharedObject.get("foo", true);
var len = myShared.clear();
SharedObject.close
Availability
Flash Communication Server MX.
Usage
SharedObject.close()
Parameters
None.
Returns
Nothing.
Description
Method; detaches a reference from a shared object. A call to the SharedObject.get method
returns a reference to a shared object instance. The reference is valid until the variable that holds
the reference is no longer in use and the script is garbage-collected. To destroy a reference
immediately, you can call
SharedObject.close. You can use SharedObject.close when you
dont want to proxy a shared object any longer.
Example
In this example, mySO is attached as a reference to shared object foo. When you call mySO.close
you detach the reference
mySO from the shared object foo.
mySO = SharedObject.get("foo");
// insert code here
mySO.close();
See also
SharedObject.get
Vue de la page 343
1 2 ... 339 340 341 342 343 344 345 346 347 348 349 ... 368 369

Commentaires sur ces manuels

Pas de commentaire