Flex2 and ColdFusion with out “ColdFusion/Flex Connectivity”

Posted on May 13, 2006 | Comments Off

In Flex 1.5 we would connect to ColdFusion by setting the amfgateway to “/flashservices/gateway”. In Flex2 things changed.

With Flex2 and AS3 the remoting gateway and other RPC services implementation changed quite drastically. There is a new AMF format and it is called AMF3, where Flex 1.5 and before all used AMF0. The default gateway for ColdFusion’s remoting gateway is “/flashservices/gateway”, with Flex2 you get to install an update to the ColdFusion server and configure the channel and destination of the gateways through a xml config file. This is all really good and will provide many nice features going forward.

ColdFusion/Flex Connectivity

My post here and work on a AMF0 custom RemoteObject component is not meant to compete with the progress of Flex2 and AS3, but it sure would be nice to have a migration path that was easier to swallow. The RemoteObjectAMF0 custom component I created is showcased in an example using AMFPHP and Cairngorm but it can be used with ColdFusion as well. You can find the RemoteObjectAMF0 code here

Please remember that the RemoteObject does not reflect the full features of Flex 1.5’s RemoteObject, but when implemented in the Cairngorm method it gives you all the functionality you need (hopefully, hehe).