MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 741

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

Naming packages
It's common for package names to use "reverse domain" naming convention. Examples of
reverse domain names include
for yourdomain.org.
Use the following guidelines when you name packages:
Put the prefix for a package name in all lowercase letters.
For example,
com
Put related classes (classes with related functionality) in the same package.
Begin package names with a consistent prefix.
For example, you might use
Another example would be
ActionScript 2.0 Reference.
Use a clear and self-explanatory package name.
It's important to explain the package's responsibilities. For example, you might have a
package named
Pentagons,
various kinds of pentagons in documentation examples; its name would be
com.macromedia.docs.as2.Pentagons
Use mixed capitalization for compound or concatenated package names.
is an example of a compound, concatenated package name. Remember to
packageName
use all lowercase letters for the prefix (com, org, and so on).
Do not use underscores or dollar sign characters.
Naming interfaces
Starting interface names with an uppercase "I" helps you distinguish an interface from a class.
The following interface name,
concatenated words with mixed case, as follows:
interface IEmployeeRecords{}
The following conventions also apply:
Interface names have an uppercase first letter.
This is the same as class names.
Interface names are usually adjectives.
is a good example.
Printable
For more information on interfaces, see
com.macromedia
,
, or
.
mx
org
com.macromedia.projectName
com.macromedia.docs.learnAS2.Users
which is responsible for using the Flash drawing API to draw
IEmployeeRecords
Chapter 9, "Interfaces."
for macromedia.com, and
to maintain consistency.
.
, uses an initial uppercase letter and
org.yourdomain
for the Learning
Naming conventions
741

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents