RemoteObjectAMF0 Update

Posted on October 31, 2006 | 8 comments

I have updated RemoteObjectAMF0 to work properly with mx.rpc.IResponder implementation. I have also properly packaged it up as a component, including SWC, docs, example and source files.

You can find the updated code at http://renaun.com/blog/flex-components/remoteobjectamf0/.

There is a live demo example of the updated code running Cairngorm Store (Cairngorm 2.1 updated), AMFPHP and RemoteObjectAMF0.

  • http://blog.owenvandijk.nl Owen van Dijk

    Thanks, i was just fighting today to get things working with 2.1 :)

  • http://riaevolution.com luchyx

    Yes excellent !!
    This class is very useful for me and for amfphp developers too.
    Thank´s Erikson.
    Q: I’m having coercion problems mapping users’s returned by a sql query to the corresponding as3 class. php5.
    I`m doing:
    // php remote method table
    // getUsers() “returns”=>”com.ria.vo.User”
    // “select name, lastname, userid from users”;

    With AMFPHP Service Browser I saw the _explicitType correctly but in flex they trow me a coercion error.

    How can I map a resulset to an array of type object.??

    Thanks a lot.
    Reunan – Your works are excellent ;)

  • seantomas

    Am trying to get the RemoteObjectAMF0 object working and am getting the following error on compile:

    Initializer for ‘com.renaun.rpc.RemoteObjectAMF0′: values of type com.renaun.rpc.RemoteObjectAMF0 cannot be represented in text.

    Any thoughts as to where I went wrong?

    Many thanks!

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

    That is a strange error I would have to see your code to try and figure out what the compiler is really talking about.

  • http://www.guebel.com.ar Diego

    Hi Renanun,
    I was working with your previous version for a while.
    I want to use the new one in a new project but I’m getting this weird error:

    Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.Failed
    at com.renaun.rpc::RemoteObjectAMF0/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()
    at RemoteObjectsTest/::onTestSetSession()
    at RemoteObjectsTest/___Button2_click()

    Any clue?
    Thanks in advance.

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

    NetConnection.Call.Failed could mean many things. Did you change any of your other code or just the RemoteObjectAMF0?

    Any sample code would be helpful.

  • robert was

    In the latest source of RemoteObjectAMF0 I not found methods for set credentials – it is my solution – maybe you integrate it your current code
    http://81.21.200.136:8160/97.html

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

    Thanks robert, a little over due, but I will integrate the setCredentials into the code base

  • Pingback: Renaun Erickson » Cairngorm Store Example using ColdFusion RemoteObject as backend