Flex2, Cairngorm2, AMFPHP login example

Posted on April 4, 2006 | 7 comments

I have created an example showcasing Flex2 Beta2, Cairngorm2 and AMFPHP. It uses a custom RemoteObjectAMF0 component I created. The custom component allows access to AMF0 format services. The access tries to mimic a subset of what you can do with the Flex 1.5 RemoteObject. It does not support all the features of Flex 1.5 RemoteObject and is first draft code, but it can work nicely in the context of Cairngorm’s Service.mxml (ServiceLocater) code structure.

The example code is currently in the context of the Cairngorm Login example that is found in the Cairngorm 2 download.

Please remember that AMF3 is the newer AS3/Flex2 format and therefore the longevity of the custom RemoteObjectAMF0 is unknown. A few of us are hoping to see a AMF0 supported RemoteObject to be part of the Flex2. But in the end it does not matter once Flex2 is released and AMF3 gets embraced by a wider adapter/connector base.

You can find the example (as well as another example I created) located here:
http://www.renaun.com/flex2/

Renaun

  • ariel

    I can login, so it works, but all the time I keep having the following ActionScript error:

    Error #2044: Unhandled StatusEvent: level=error, code=

    Can u tell me what does it means, please?

    Thanks

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

    StatusEvent is fired only when a object like Camera, Microphone, SharedObject, LocalConnection is used.

    LiveDoc on StatusEvent

    Does it happen at a specific point, maybe the NetConnection is throwing a StatusEvent even though the docs doing mention it. Hmmm… can you describe exactly where/when it happens?

  • ariel

    It happens any time I reload the app on the browser. So it triggers on the load event. Also on clicking and on showing the result display….

  • ariel

    The only relevant thing I find is this:

    Flash Player dispatches NetStatusEvent objects when a NetConnection or NetStream object reports its status.

    http://livedocs.macromedia.com/labs/1/flex/langref/flash/events/NetStatusEvent.html

  • ariel

    Do you have any clues?

  • ariel

    Hi Renaun. I haven’t been able to find the solution to this problem. Can you lend me a hand on this?

    Thanks!

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

    Ariel has pointed out to me that I had an issue with the original code that I posted. It had to do with the TracePanel utility I use in my code. The issue has been resolved and fixed, get the updated code.