Chapter 6. Creating Custom Classes
Create a Package
In object-oriented programming, a package is a container for a group of related classes. In real terms, a package is simply the folder on your computer that contains your class files. The packages you use for your Flash projects should be created in the same folder as the other files for your project; normally, the top-level package will be in the same directory as the FLA file. By convention, package names should begin with a lowercase letter and then contain mixed case after that.
Many classes exist in ActionScript, and the possibility exists that you could create a custom class with the same name as one of the built-in classes. In this situation, a name conflict will occur, resulting in an error ...
Get ActionScript®: Your visual blueprint™ for creating interactive projects in Flash® CS4 Professional now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.