SGF is a project mainly written in ..., it's free.
Social Game Framework - as3 / Flex social game framework