Small Basic - Traffic Light Challenge

One of this month's forum challenges was to create a traffic light system.

Graphics Challenge 2

Draw a traffic light that changes through the correct lighting sequence, perhaps using the Timer object.

We have 2 great answers in, the first by Martin from Germany.

And the second by NaochanOn from Japan which uses different coloured lights.

You can view them in action (as well as see the source code) using SIlverLight with the following links:

http://smallbasic.com/smallbasic.com/program/?MNZ607

http://smallbasic.com/smallbasic.com/program/?KZP715

Note that you can host any of your Small Basic programs online in this way after it is published and you have the 6 character ID.