Mega Code Archive

 
Categories / Flex / Development
 

Use SecureAMFChannel

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" creationComplete="init()">     <mx:RemoteObject id="channelRO"/>     <mx:Script>                      import mx.messaging.ChannelSet;             import mx.messaging.channels.SecureAMFChannel;             private var cs:ChannelSet             private function init():void {                 cs = new ChannelSet();                 var chan: SecureAMFChannel = new SecureAMFChannel("secure-amf", "gateway")                 chan.pollingEnabled = true;                 chan.pollingInterval = 3000;                 cs.addChannel(chan);                 channelRO.channelSet = cs;             }            </mx:Script> </mx:Application>