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

Chapter 10. Into the Great Beyond > The Nature of Class Files

The Nature of Class Files

The Dreamweaver API, as you should know by now, includes a wide range of custom JavaScript objects for handling different scripting tasks. From the dw and dom objects, which we’ve been using throughout this book, to the site object, to much more specialized objects such as SWFFile and FWLaunch, there are dozens of custom objects comprising thousands of methods and properties to help us extend Dreamweaver functionality.

In addition to these objects that are built into the API, however, the Macromedia engineers have used JavaScript to write a whole series of custom object classes that build on the API. These classes are defined in JavaScript files in the Configuration/Shared folder, with the most commonly used files being found in the Configuration/Shared/Common subfolder. The dwscripts.js file, for instance—which we have used throughout this book—defines the dwscripts class to hold its utility functions. Link your extension file to this file, and access the dwscripts utilities at will.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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