![MACROMEDIA DIRECTOR MX 2004 Reference Download Page 54](http://html1.mh-extra.com/html/macromedia/director-mx-2004/director-mx-2004_reference_687516054.webp)
54
Chapter 3: Writing Scripts in Director
Top level functions and properties
There are a number of top level functions and properties that provide direct access to the core
objects and functionality in Director. You will likely make extensive use of many of these
functions and properties as you create references to core objects, new images, lists, and so on. For
example, the top level
_movie
property refers directly to the core Movie object, and the top level
list()
function creates a linear list.
The following tables list the top level functions and properties.
Introduction to object-oriented programming in Director
By using either Lingo or JavaScript syntax, you can apply object-oriented programming principles
to your scripts. Applying object-oriented principles typically makes programming easier by letting
you write less code and letting you use simpler logic to accomplish tasks, in addition to increasing
the reusability and modularity of your code.
Depending on the scripting language you are using, you apply these principles using two
different paradigms:
•
In Lingo, you use parent scripts, ancestor scripts, and child objects to simulate object-oriented
programming.
•
In JavaScript syntax, you use standard JavaScript-style object-oriented programming
techniques to create classes and subclasses.
Top level functions
castLib()
randomVector()
channel() (Top level)
rect()
color()
script()
date() (formats)
,
date() (System)
showLocals()
image()
sound()
isBusy()
sprite()
list()
symbol()
member()
timeout()
point()
trace()
propList()
vector()
put()
window()
random()
xtra()
Top level properties
_global
_player
_key
_sound
_mouse
_system
_movie
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...