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

Chapter 11. Manipulating Information > Building Custom Classes with ActionScrip...

Building Custom Classes with ActionScript 2

While Flash provides a wealth of built-in classes to help you create interactivity, you may need to build a unique class especially suited for your project. Building your own class lets you organize and customize information to create functionality that Flash doesn’t provide.

In ActionScript 2, creating a custom class involves writing and saving the code in an external ActionScript file with the file extension .as. An external ActionScript class file is simply a text file that you can compose in any number of text editing applications or within the Actions Script pane. Usually you will want to save the ActionScript class file in the same directory as your Flash movie. This is the usual place, called the classPath, that Flash expects to find the ActionScript class file. However, in the Publish Settings dialog box, you can change the classPath and direct Flash to look in a different folder for your ActionScript class file.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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