MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Instrukcja Użytkownika Strona 52

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 80
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 51
52
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
Przeglądanie stron 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 79 80

Komentarze do niniejszej Instrukcji

Brak uwag