Awesome!
I do quite a bit of programming myself (since I do A Level computing) - although I've never actually used flash, so I have no submissions here. But even with some strong knowledge of programming, it still takes quite a lot of thinking to solve the later problems... I did it all in the end, but great game!
It would be cool to see a sequel to this game with more space to put commands, and more functions (and, obviously, bigger levels) - that way, you could make it so that each function does a more specific job and gets used more effectively.
I completed it using 212 commands... is that good or bad?! It would be better to see how you ranked at the end.