Top Level Functions And Properties; Introduction To Object-Oriented Programming In Director - MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference

Director scripting reference
Table of Contents

Advertisement

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
function creates a linear list.
list()
The following tables list the top level functions and properties.
Top level functions
castLib()
channel() (Top level)
color()
date()
(formats),
image()
isBusy()
list()
member()
point()
propList()
put()
random()
Top level properties
_global
_key
_mouse
_movie

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.
54
Chapter 3: Writing Scripts in Director
property refers directly to the core Movie object, and the top level
_movie
date() (System)
randomVector()
rect()
script()
showLocals()
sound()
sprite()
symbol()
timeout()
trace()
vector()
window()
xtra()
_player
_sound
_system

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx 2004

Table of Contents