MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 75

Director scripting reference
Table of Contents

Advertisement

Inserting common scripting terms
The Script window provides pop-up menus of common scripting terms that you can use to insert
statements in a script. The same menus also appear in the Message window.
In both the Script window and the Message window, you can select which scripting syntax you
want to use for a particular script.
To select the scripting syntax:
From the Script Syntax pop-up menu, select either Lingo or JavaScript.
After you select a scripting syntax, you enter code in the syntax you have chosen. If you try to
compile a script in a syntax other than the one you chose, a script error occurs.
When entering scripts in the Script window, you can comment out or uncomment either single
or multiple lines of code by using the Comment or Uncomment buttons. Depending on which
scripting syntax you have chosen, the Comment and Uncomment buttons display the correct
comment markers for that syntax; Lingo uses double-hyphens (
double-slashes (
//
To comment code:
Highlight the line or lines of code you want to comment out, and click Comment.
Note: When using the Comment button to comment out multiple lines of JavaScript syntax code,
Director inserts double-slashes before each line. You can also comment out multiple lines of code by
inserting /* before the first line of commented code and inserting */ after the last line of commented
code, but you must do this manually.
To uncomment code:
Highlight the line or lines of code that you want to remove comments from, and
click Uncomment.
Both the Script window and the Message window contain the following menus:
The Alphabetical Lingo menu lists every element in alphabetical order, except 3D Lingo.
The Categorized Lingo menu lists categories of elements according to the features they are
often used for. It does not include 3D Lingo.
The Alphabetical 3D Lingo menu lists all 3D Lingo elements in alphabetical order.
).
), and JavaScript syntax uses
--
Writing scripts in the Script window
75

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents