MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Dokumentacja Strona 278

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 277
Client-Side Communication ActionScript 87
SharedObject.close
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
myRemoteSharedObject.close()
Parameters
None.
Returns
Nothing.
Description
Method; closes the connection between a remote shared object and the Flash Communication
Server.
If a remote shared object is locally persistent, the user can make changes to the local copy of the
object after this method is called. Any changes made to the local object are sent to the server the
next time the user connects to the remote shared object.
See also
SharedObject.connect, SharedObject.flush
SharedObject.connect
Availability
Flash Player 6.
Flash Communication Server MX.
Usage
myRemoteSharedObject.connect(myRTMPConnection)
Parameters
myRTMPConnection A NetConnection object that is using the Real-Time Messaging Protocol
(RTMP) to communicate with the Flash Communication Server.
Returns
A Boolean value of true if the connection was successfully completed, false otherwise.
Description
Method; connects to a remote shared object on the Flash Communication Server through the
specified connection. Use this method after issuing
SharedObject.getRemote. After a successful
connection, the
SharedObject.onSync event handler is invoked.
Before attempting to work with a remote shared object, you should first check for a return value
of
true, indicating a successful connection, and then wait until you receive a result from the
function you have assigned to
SharedObject.onSync. If you fail to do so, any changes you make
to the object locally—before
SharedObject.onSync is invoked—may be lost.
Note: SharedObject.onSync is not invoked if this call returns false.
Przeglądanie stron 277
1 2 ... 273 274 275 276 277 278 279 280 281 282 283 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag