User Guide
101
CHAPTER 5
Director Core Objects
The core objects in Macromedia Director MX 2004 provide access to the core functionality and
features available in Director, projectors, and the Macromedia Shockwave Player. Core objects
include the Director player engine, movie windows, sprites, sounds, and so on. They represent the
base layer through which almost all APIs and other object categories are accessed; the exceptions
are the scripting objects, which extend the core functionality of Director.
For an illustration of how the core objects relate to each other and to other objects in Director, see
“Object model diagrams” on page 53.
Cast Library
Represents a single cast library within a movie.
A movie can consist of one or more cast libraries. A cast library can consist of one or more cast
members, which represent media in a movie, such as sounds, text, graphics, and other movies.
You can create a reference to a cast library by using either the top level
castLib() function or the
Movie object’s
castLib property. For example, if a movie contains a cast library named scripts,
you could create a reference to this cast library by doing the following:
• Use the top level castLib() method.
-- Lingo syntax
libScript = castLib("scripts")
// JavaScript syntax
var libScript = castLib("scripts");
• Use the Movie object’s castLib property.
-- Lingo syntax
libScript = _movie.castLib["scripts"]
// JavaScript syntax
var libScript = _movie.castLib["scripts"];
Method summary for the Cast Library object
Method
findEmpty()