Flash, Ruby, and MYSQL

Hello,

I have recenltly started database integration with Flash and was wondering if anyone has any information, links, or tutorials on how to use Ruby with flash instead of PHP.
Is this even possible? Any information or a direction to start will help.

Thanks,