Packagecom.adobe.rtc.util
Classpublic class JSBridge
InheritanceJSBridge Inheritance flash.events.EventDispatcher
ImplementsISessionSubscriber

Bridge that enables bidirectional communication between LCCS Components and JavaScript interface using the ExternalInterface


Example
_cSession = new ConnectSession();
var auth:AdobeHSAuthenticator = new AdobeHSAuthenticator();
auth.requireRTMFP = false;
auth.protocol = "RTMPS";
auth.userName = "uName[at]adobe.com";
auth.password = "passwd";
_cSession.roomURL = "http://connectnow.acrobat.com/uname/roomName";
_cSession.authenticator = auth;
if(!_jsBridge) {
    _jsBridge = new com.adobe.rtc.util.JSBridge();
}
_cSession.addEventListener(SessionEvent.SYNCHRONIZATION_CHANGE, onSync);
_cSession.login();



Public Properties
 PropertyDefined by
  connectSession : IConnectSession
The IConnectSession with which this component is associated.
JSBridge
  isSynchronized : Boolean
[read-only] A variable that indicates whether or not the ConnectSession is fully synchronized with the service.
JSBridge
Protected Properties
 PropertyDefined by
  _didSubscribe : Boolean = false
JSBridge
  _invalidator : Invalidator
JSBridge
Public Methods
 MethodDefined by
  
JSBridge(target:IEventDispatcher = null)
JSBridge
Property detail
connectSessionproperty
connectSession:IConnectSession  [read-write]

The IConnectSession with which this component is associated. Note that this may only be set once before subscribe is called; re-sessioning of components is not supported. Defaults to the first IConnectSession created in the application.

Implementation
    public function get connectSession():IConnectSession
    public function set connectSession(value:IConnectSession):void
_didSubscribeproperty 
protected var _didSubscribe:Boolean = false
_invalidatorproperty 
protected var _invalidator:Invalidator
isSynchronizedproperty 
isSynchronized:Boolean  [read-only]

A variable that indicates whether or not the ConnectSession is fully synchronized with the service.

Implementation
    public function get isSynchronized():Boolean
Constructor detail
JSBridge()constructor
public function JSBridge(target:IEventDispatcher = null)Parameters
target:IEventDispatcher (default = null)




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/util/JSBridge.html