![MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference Download Page 706](http://html1.mh-extra.com/html/macromedia/director-mx-2004-director-scripting/director-mx-2004-director-scripting_reference_3321720706.webp)
706
Chapter 14: Properties
Example
This statement removes a
constraint
sprite property:
-- Lingo syntax
sprite(5).constraint = 0
// JavaScript syntax
sprite(5).constraint = 0;
This statement constrains sprite (i + 1) to the boundary of sprite 14:
-- Lingo syntax
sprite(i + 1).constraint = 14
// JavaScript syntax
sprite(i + 1).constraint = 14;
This statement checks whether sprite 3 is constrained and activates the handler
showConstraint
if it is:
-- Lingo syntax
if (sprite(3).constraint <> 0) then
showConstraint
end if
// JavaScript syntax
if (sprite(3).constraint != 0) {
showConstraint();
}
See also
locH
,
locV
,
Sprite
controlDown
Usage
-- Lingo syntax
_key.controlDown
// JavaScript syntax
_key.controlDown;
Description
Key property; determines whether the Control key is being pressed. Read-only.
This property returns
TRUE
if the Control key is being pressed; otherwise, it returns
FALSE
.
You can use
controlDown
together with the
key
property to determine whether the Control key
is being pressed in combination with another key. This lets you create handlers that are executed
when the user presses specified Control key combinations.
Control or key equivalents for the Director authoring menus take precedence while the movie is
playing, unless you have installed custom Lingo or JavaScript syntax menus or are playing a
projector version of the movie.
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...