There have been a number of posts and tutorials posted on this topic but just wanted to post it here as well because I've heard some people who were under the impression it is not possible to hook AMFPHP or other Flash Remoting solutions up to Flex 2. Flex 2 uses a newer and more optimized version of the AMF format, while its true that exisiting Flash Remoting solutions currently don't support this latest AMF format, it is possible to set a property on the NetConnection class to make it compatible.

Getting this done is pretty easy, you create a custom class by extending flash.net.NetConnection and set the objectEncoding property to AMF0 (the constant is set in flash.net.ObjectEncoding.AMF0).

For more information see:

http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html http://www.tweenpix.net/blog/

Posted
AuthorPeter
CategoriesFlex, PHP