848
Chapter 14: Properties
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
mask
property to 0.
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
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...