Package Error

I try to learn Package in AS 3.0. I copy and paste the following code into .as file
[COLOR=#0000ff]http://www.kirupa.com/developer/flashcs3/movieclips_classes_AS3_pg2.htm[/COLOR]

When I test it, it doesn’t work. It has the message "Javascript Errors. Missing “;’ before the statement”. I looked into the code, I didn’t see any missing “;”. Anyone has run this code successfully? Please show me how to fix it. Thanks in advance.