Did you remember to assign a main script to the map in the File Menue - Map Properties?