Here's one way: You'll need to setup some form of a state machine. Inside of your Loop(), add an incrementing variable. Then do checks against that variable to determine how many times you've gone around in the loop. From there, call different sub-routines for each of the functions you want. You'll need to keep track of what state each of those functions are in, so you can make things flash the way you want.