Flex2, Cairngorm2, AMFPHP login example
April 4th, 2006
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
Entry Filed under: Adobe Flex, Flex,AMF,PHP



7 Comments Add your own
1. ariel | 2006-04-22 at 8.18 am
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
2. Renaun Erickson | 2006-04-22 at 9.40 am
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?
3. ariel | 2006-04-22 at 12.34 pm
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….
4. ariel | 2006-04-22 at 1.13 pm
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
5. ariel | 2006-04-24 at 4.09 am
Do you have any clues?
6. ariel | 2006-05-08 at 4.56 pm
Hi Renaun. I haven’t been able to find the solution to this problem. Can you lend me a hand on this?
Thanks!
7. Renaun Erickson | 2006-05-08 at 11.22 pm
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.
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed