Tic tac toe

Im learning flash and am to make a tic tac toe game what is the best way to test for a winning line???

if you know of any good tutorials etc!