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()
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...