Flash game

I was just hoping someone cold point me in the right direction. If made a game in flash – chess for instance – How would I make it so two players could play at the same time across the web. So, black’s moves were seen on white’s board and Vice versa?

Thanks