MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 598

Director scripting reference
Table of Contents

Advertisement

-- (comment)
Usage
-- Lingo syntax
-- comment
// JavaScript syntax
// comment
Description
Comment delimiter; indicates the beginning of a script comment. On any line, anything that
appears between the comment delimiter (double hyphen) and the end-of-line return character is
interpreted as a comment rather than a Lingo statement.
Example
This handler uses a double hyphen to make the second, fourth, and sixth lines comments:
-- Lingo syntax
on resetColors
-- This handler resets the sprite's colors.
sprite(1).forecolor = 35
-- bright red
sprite(1).backcolor = 36
-- light blue
end
// JavaScript syntax
function resetColors() {
// this handler resets the sprite's colors
sprite(1).forecolor = 35;
// bright red
sprite(1).backcolor = 36;
// light blue
}
&, + (concatenation operator)
Usage
-- Lingo syntax
expression1 & expression2
// JavaScript syntax
expression1 + expression2
Description
String operator; performs a string concatenation of two expressions. If either
is a number, it is first converted to a string. The resulting expression is a string.
expression2
This is a string operator with a precedence level of 2.
Lingo allows you to use some commands and functions that take only one argument without
parentheses surrounding the argument. When an argument phrase includes an operator, Lingo
interprets only the first argument as part of the function, which may confuse Lingo.
598
Chapter 13: Operators
or
expression1

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

This manual is also suitable for:

Director mx 2004

Table of Contents