Any syntax in arduino like "setinterval" in Flash?

You can also look at MsTimer2 if you want it to happen at a certain interval, and know you'll be busy with other things, or don't want to (or cannot) check otherwise.

http://www.arduino.cc/playground/Main/MsTimer2

!c