1. Class
● Each class describes, in code, both the characteristics and behavior of a particular type of
object.
● What the objects do determines the behavior of the program.
● Building a program with classes and objects is known as object oriented programming
(OOP).
● The develop ment of a new ActionScript program starts with a design phase, during which
the program’s functionality is broken into a logical set of classes. Each class is given a name,
a set of features, and a role in the larger program. One class in particular is designated as the
main class. The main class provides the starting point, or program point of entry, for the
application.
● Filename exactly matches the class name
● To prevent potential naming conflicts in program, packages are used.
Packages
● A package is a conceptual container for a group of classes
● By convention, package names typically start with a lowercase letter while class names
typically start with an uppercase letter.
● By convention (but not necessity), package names typically have the following structure:
● The reversed domain name of the organization creating the program
● Followed by a period (.)
● Followed by the general purpose package’s contents
● eg : package com.mudrait.map { }
● Domain names are guaranteed to be unique by the system of authorized topleveldomain
registrars; thus, starting your package names with your organization’s domain name avoids
name conflicts with code developed by other organizations.
●