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

Chapter 5. Introducing Lingo > The Director Object Model

The Director Object Model

The Director Object Model, or DOM, is new in Director MX 2004. Web developers will likely notice the similarity between the Director DOM and the Document Object Model in use on the Web. The DOM provides a tree-like interface that exposes the entire Director environment through a series of logically organized objects. Those objects fall into four general classifications: Core Objects, Media Types, Scripting Objects, and 3D Objects.

The Core Objects provide access to—you guessed it—the core functionality and features such as sprites, movies in a window, the player engine, and more. You probably didn't realize it, but you've already used the DOM to loop on a frame using _movie.go(_movie.frame). In fact, that single line of code accesses the DOM twice: to call the movie's go() method, and to get the movie's current frame.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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