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

Chapter 7. Classes > Example: Writing custom classes

Example: Writing custom classes

Now that you’ve explored the basics of a class file, and what kinds of things it contains, it’s time to learn some of the general guidelines for creating a class file. The first example in this chapter shows you how to write classes and package them. The second example shows you how to use those class files with a FLA file.

Caution

ActionScript code in external files is compiled into a SWF file when you publish, export, test, or debug a FLA file. Therefore, if you make any changes to an external file, you must save the file and recompile any FLA files that use it.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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