Chapter 16
414
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
showXlib
in the Message window.
To display a list of methods for an Xtra:
•
Issue the command
put mmessageList("
XtraName
")
in the Message window.
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
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.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...