That sounds like you've forgotten to attach your script to the map. Goto File -> Map Properties and select your script there.


Always learn from history, to be sure you make the same mistakes again...