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

Posted on May 13, 2006 | 6 comments

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.

  • Pingback: diamondtearz » Blog Archive » Still plowing through Flex AMFPHP now with Cairngorm

  • http://www.log2e.com Stefan Schmalhaus

    I downloaded the source code of the AMFPHP example for F2B3. I wasn’t able to find the PHP script “Login.php” that is supposed to be in “amfphp_services”. There is no folder “amfphp_services” in the ZIP archive.

  • http://www.renaun.com Renaun Erickson

    Stefan, thanks for the heads up on the missing file. It up there now.

  • http://www.log2e.com Stefan Schmalhaus

    Hmmm… I still can’t find it. It’s not in this zip archive:

    http://www.renaun.com/flex2/20060513_CairngormAMFPHPExample2/srcview/

  • http://www.renaun.com Renaun Erickson

    Weird, I just click on the link you put in the comment and its there, in the source view and in the zip file under amfphp_services. Maybe clear your cache?

  • http://www.mecano.ca stef

    Thanks a lot for this! Tried it and got it to work in my app in a few minutes without any problem. Works great with my app built on cairngorm.
    I was using a temporary AS file for my call and I really prefer it this way in a mxml file, thanks!

  • madeiras

    How do I listen for errors other than a fault, ex network error ?

    I added listeners ioError and netStatus to NetConnection and nothing happens.

    thanks in advance.

  • Pingback: Last » Blog Archive » Flex2 custom RemoteObjectAMF0 component

  • Pingback: Mason’s Blog » Blog Archive » Latest Flex Links