MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 431

Director scripting reference
Table of Contents

Advertisement

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
no return value.
Parameters
Required. Specifies the direction to nudge the view perspective. Valid values include
direction
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;
}
command has
nudge
nudge()
431

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents