<mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" creationComplete="init()"> <mx:RemoteObjectid="channelRO"/> <mx:Script> <![CDATA[ import mx.messaging.ChannelSet; import mx.messaging.channels.SecureAMFChannel; privatevar cs:ChannelSet privatefunction init():void { cs = new ChannelSet(); // note that the name of the channel is the same as in the services-config.xml file var chan: SecureAMFChannel = new SecureAMFChannel("secure-amf","gateway") chan.pollingEnabled = true; chan.pollingInterval = 3000; cs.addChannel(chan); channelRO.channelSet = cs; }