MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 848

Director scripting reference
Table of Contents

Advertisement

Masking is an advanced feature; you may need to experiment to achieve your goal.
This property can be tested and set. To remove a mask, set the
Example
This frame script sets a mask for a QuickTime sprite before Director begins to draw the frame:
-- Lingo syntax
on prepareFrame
member("Peeping Tom").mask = member("Keyhole")
end
// JavaScript syntax
function prepareFrame() {
member("Peeping Tom").mask = member("Keyhole");
}
See also
invertMask
maxInteger
Usage
the maxInteger
Description
System property; returns the largest whole number that is supported by the system. On most
personal computers, this is 2,147,483,647 (2 to the thirty-first power, minus 1).
This property can be useful for initializing boundary variables before a loop or for limit testing.
To use numbers larger than the range of addressable integers, use floating-point numbers instead.
They aren't processed as quickly as integers, but they support a greater range of values.
Example
This statement generates a table, in the Message window, of the maximum decimal value that can
be represented by a certain number of binary digits:
on showMaxValues
b = 31
v = the maxInteger
repeat while v > 0
put b && "-" && v
b = b-1
v = v/2
end repeat
end
848
Chapter 14: Properties
property to 0.
mask

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