Traffic Lights in BGE?

Hello,

is there a way to make traffic lights flash in the Blender Game Engine? For instance, it flashes red, then green, then amber? Here is the type of effect I am going for:



Could you please post a simple .blend file, as that makes it much easier to understand what is going on.

Thank you very much!