![MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference Download Page 431](http://html1.mh-extra.com/html/macromedia/director-mx-2004-director-scripting/director-mx-2004-director-scripting_reference_3321720431.webp)
nudge()
431
nudge()
Usage
-- Lingo syntax
spriteObjRef
.nudge(
#direction
)
// JavaScript syntax
spriteObjRef
.nudge(
#direction
);
Description
QuickTime VR command; nudges the view perspective of the specified QuickTime VR sprite in
a specified direction.
Nudging to the right causes the image of the sprite to move to the left. The
nudge
command has
no return value.
Parameters
direction
Required. Specifies the direction to nudge the view perspective. Valid values include
the following:
•
#down
•
#downLeft
•
#downRight
•
#left
•
#right
•
#up
•
#upLeft
•
#upRight
Example
This handler causes the perspective of the QTVR sprite to move to the left as long as the mouse
button is held down on the sprite:
-- Lingo syntax
on mouseDown me
repeat while the stillDown
sprite(1).nudge(#left)
end repeat
end
// JavaScript syntax
function mouseDown() {
do {
sprite(1).nudge(#left);
} while _mouse.stillDown;
}
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...