Have you use Flash 5 code anywhere in your movie?

Set your publish settings to flash 4 and when you edit your actionscripts, non-F4 compatible code should highlight.