Classes Problem

Hi,
My name is John and I’m posting in this forum for the first time. I have superficial knowledge on AS and I was wanting to increase my knowledege on the same.

I was following the article “Classes in Actionscript 3” on your site , I followed the steps given (creating the FLA and AS file) and also pasting the code into the FLA file, but when I export the movie to test the code, I get the following error messages in the compiler window

1046: Type was not found or is not a compile time constant
1180: Call to a possibly undefined method

I have no idea as to what to trouble shoot (as I am learning the basics of classes etc), I had a peep into the compiler error messages but didn’t really help.

Could someone guide the way ?