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

Chapter 7. Classes > Example: Using custom class files in Flash

Example: Using custom class files in Flash

This example uses class files that are written in the example called “Example: Writing custom classes” on page 269, or you can download them from www.helpexamples.com/flash/learnas/classes/. If you completed “Example: Writing custom classes” on page 269, locate ClassA.as and ClassB.as on your hard disk.

Since the package name of the ClassA class file is com.macromedia.utils.ClassA, you’ll need to make sure that you save the class files in the proper directory structure. Create a subfolder named com in the current directory. Within the com folder, add a new folder named macromedia. Add a third, and final, subdirectory within the macromedia folder named utils. Save both the ClassA.as and ClassB.as class files within this utils folder. Now you are ready to proceed with this example.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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