Lolazaurus, I had the same problem and it took me a long time to realize that the tense of the title of the .as file has to match the code. For example my file was missile.as and the code called for a class called Missile, with a capital M. I had to delete the .as file and resave it because overwriting it didnt fix the problem. Try that
Nvm, i got it to work.
All of you not getting it to work, make sure that after you copy the code you correct the format in the program. Flash untabbed some code lines and i think that was the issue.