Let's talk about Flex, AIR, ActionScript, ColdFusion and more    

AIR : How to use Producer/Consumer without compiler option


The key of this sample is that AMFChannel is defined by AS3.

AIR : code of Producer sample


AIR : code of Consumer sample



CFC called by EventGateway named "BlazeDSMessagingGateway"


Comments
Sam Farmer's Gravatar This is awesome! Many thanks for posting this. I was banging my head against a wall until I saw this.
# Posted By Sam Farmer | 12/21/07 2:59 AM
Javier Julio's Gravatar Yeah same here! Thanks! This is a great example and its greatly appreciated. I haven't yet tried this but I have been using Consumer and Producer in Flex along with CF8 and I've found it so easy but I've always wondered how is it doable in an AIR application. Thanks for sharing Shigeru! But just to point out I don't believe you need to call sendGatewayMessage in the onIncomingMessage function. Simply cfreturn the struct you've created and all subscribed clients should receive the message.
# Posted By Javier Julio | 2/10/08 3:26 AM
Rafe's Gravatar What about service-config and remoting-config.xml , I want test it with java objects and I need to set an Adapter Definition, Do I have to set an Adapter by code???
# Posted By Rafe | 5/31/08 5:32 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.5.005.