• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Classes > About working with custom classes in an application

About working with custom classes in an application

In “Writing custom class files” on page 241, you created a custom class file. In the following sections, you use that class file in an application. At the minimum, the workflow for creating classes involves the following steps:

1.
Define a class in an external ActionScript class file. For information on defining and writing a class file, see “Writing custom class files” on page 241.

2.
Save the class file to a designated classpath directory (a location where Flash looks for classes), or in the same directory as the application’s FLA file. For more information on setting the classpath, see “About setting and modifying the classpath” on page 246. For a comparison and more information on importing class files, see “About importing class files” on page 245.

3.
Create an instance of the class in another script, either in a FLA document or an external script file or by creating a subclass based on the original class. For more information on creating an instance of a class, see “Creating instances of classes in an example” on page 284.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint