I’ve been wondering this ever since Zynga started making real money from selling fake currency to people playing online poker.
This is a very interesting article that points to some of the relevant legal points about gambling and how various companies are skirting those issues.