MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual page 414

Table of Contents

Advertisement

When an element requires additional parameters, Lingo includes placeholder names that indicate
the additional required information. When more than one argument or parameter is required,
Lingo highlights the first one for you, so all you have to do is type to replace it. You must select
and change the other parameters yourself.
Some cast member types and scripting Xtra extensions provide Lingo terms that do not appear in
the Lingo menus. These member types and Xtra extensions often have their own documentation,
and you can find some information from within Director.
To display a list of available Xtra extensions:
Issue the command
To display a list of methods for an Xtra:
Issue the command
Entering and editing text
Entering and editing text in a Script window is similar to entering and editing text in any
other field.
The following are common editing tasks you perform in the Script window:
To select a word, double-click the word.
To select an entire script, select Select All from the Edit menu.
To start a new line, enter a carriage return.
To wrap a long line of code with a continuation symbol, press Alt+Enter (Windows) or
Option+Return (Macintosh) where you want to insert a soft line break.
The continuation symbol (\) that appears indicates that the statement continues on the next
line. Director 7 and earlier used a different continuation symbol (¬) instead.
To locate a handler in the current script, select the handler's name from the Handler pop-up
menu in the Script window.
To compile the Lingo you have written, click the Script window's Recompile button or close
the Script window. When you edit a Script, an asterisk appears in the Script window title bar,
indicating that the script needs to be recompiled.
To reformat a script with proper indentation, press Tab in the Script window.
Lingo automatically indents statements when the syntax is correct. If a line doesn't indent
properly, there is a problem in the Lingo syntax on that line.
To open a second Script window, Alt-click (Windows) or Option-click (Macintosh) the New
Cast Member button in the Script window. This can be helpful for editing two different
sections of a long script simultaneously.
To toggle line numbering, click the Line Numbering button.
To toggle Auto Coloring, click the Auto Coloring button. Auto coloring displays each type of
Lingo element (properties, commands, and so on) in a different color.
To toggle Auto Formatting, click the Auto Format button. Auto Formatting adds the correct
indenting to your scripts each time you add a carriage return or press Tab.
414
Chapter 16
in the Message window.
showXlib
put mmessageList("XtraName")
in the Message window.

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Director mx

Table of Contents