Flash Media Server |
|||
| Client-Side ActionScript Language Reference for Flash Media Server 2 > Client-Side ActionScript Language Reference > SharedObject class > SharedObject.connect() | |||
myRemote_so.connect(myRTMPConnection)
myRTMPConnection A NetConnection object that is using the Real-Time Messaging Protocol (RTMP) to communicate with the Flash Media Server.
A Boolean value of true if the connection was successfully completed; otherwise, false.
Method; connects to a remote shared object on the Flash Media 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 |
NetConnection class, SharedObject.getRemote(), SharedObject.onSync
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000603.html