What you are using is not a true class, but rather a Prototype which is more of a mimic of a class. It can be used in Flash 8. You can either place the prototype of a separate .as file and use the include function to pull it into your current page, or you can copy and paste the content onto your working page, either way will work, but I prefer the include version so I can reuse the prototype elsewhere.