The flashgame project contains a Ruby library for writing multiplayer Flash games and the associated games written using it.