Archive for May 13th, 2006

Flex2 and ColdFusion with out “ColdFusion/Flex Connectivity”

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).

Add comment May 13th, 2006


Flex2 custom RemoteObjectAMF0 component (AMFPHP 1.2 and Cairngorm 2 Login Example)

I created a custom RemoteObject that works with AMF0 (the old style of RemoteObject before Flex2’s changes) a couple months ago. The code was created with Flex 2 Beta 2 and Cairngorm 2. Today I updated the code base to work with Beta 3. (It works in Flex 2 release version now.)

You can find the example and source code here.

Here is my disclaimer on this code:

You have to keep in mind this is mimicing RemoteObject component functionality for AMF0, as AS3 and Flex2 have introduced a new AMF3 format. I do not recommend this code for production and am actually looking forward to to see how AMFPHP to AMF3 format will progress.

With that said, the code does work nicely to bridge the gap between making the jump to AS3 and using old code.

Also in the process of updating the code base I made a list of Beta 2 to Beta 3 changes. The changes need for this application are located here.

It works in Flex 2 release version now.

9 comments May 13th, 2006


About: I work as a Platform Evangelist for Adobe Systems Incorporated.

My Amazon.com Wish List

Calendar

May 2006
S M T W T F S
« Apr   Jun »
 123456
78910111213
14151617181920
21222324252627
28293031  

Posts by Month

Posts by Category


Flex.org - The Directory for Flex