Topic: Getting external class to work for Flash

smile Hi I'm quite new to Flash CS5 programming. I want to set up an external class file so that I have no actionscript code in the frames of my FLA file. The ultimate goal is to create a Flash website where the working FLA file has nothing on the stage and everything is called externally. What I have done is I tried to take the code within the first frame of the given Flash example to put into the new AS3 and link it to the main FLA file by class. This doesn't work so far.

Most of the errors I get are "1046: Type was not found or was not a compile-time constant: Event."
on this line of the code "function onViewerInit(e:Event):void{" and the rest that are affected are similar to this line too. The second type of error I get is: "5000: The class 'Website' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type."

Can someone assist me in making this work?

Many thanks.
Krystal