106
Chapter 5: Director Core Objects
See also
_mouse
Movie
Represents a movie being played within the Director player.
The Director player can contain one or more movies. A movie can consist of one or more cast
libraries. A cast library can consist of one or more cast members, which represent the media and
script assets in a movie. Media cast members may be text, bitmaps, shapes, and so on. Script cast
members include behaviors, movie scripts, and so on. Sprites are created from cast members and
are used on the Stage of a movie.
You can refer to the currently active movie by using the top level
_movie
property. You can refer
to any movie in the player by using the Window object’s
movie
property.
•
Refer to the currently active movie.
-- Lingo syntax
objMovie = _movie
// JavaScript syntax
var objMovie = _movie;
•
Use the Window object’s
movie
property to access the movie in a particular window.
-- Lingo syntax
objMovie = _player.window[2].movie
// JavaScript syntax
var objMovie = _player.window[2].movie;
In Director MX 2004, you can use a movie reference to access not only the methods and
properties of a movie itself, you can also call Lingo and JavaScript syntax handlers, and access the
movie’s cast members and sprites, including their methods and properties. This differs from
previous versions of Director in which you had to use the
tell
command to work with movies.
The Movie object provides a simpler way to work with movies.
Note:
The
tell
command is obsolete in Director MX 2004,
Method summary for the Movie object
mouseChar
mouseV
mouseDown
mouseWord
mouseH
rightMouseDown
mouseItem
rightMouseUp
mouseLine
stillDown
Method
beginRecording()
newMember()
cancelIdleLoad()
preLoad() (Movie)
clearFrame()
preLoadMember()
Property (continued)
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...