My friend Aaron Smith has created a really great open source project for Flash and Flex remoting called RubyAMF. This project supports AMF0 and the very fast AMF3. Go check it out if you get a chance!