How to check multiple times?

yeah, with my racing game, how would i make it so every time the car hits the finish line, it does something different. basically, the first time it does this: do that, the second time it does this: do that something else. How would you do that with actionscript?