437
nothing
Syntax
nothing
Description
Command; does nothing. This command is useful for making the logic of an
if...then
statement more obvious. A nested
if...then...else
statement that contains no explicit
command for the
else
clause may require
else nothing
, so that Lingo does not interpret the
else
clause as part of the preceding
if
clause.
Examples
The nested
if...then...else
statement in this handler uses the
nothing
command to satisfy
the statement’s
else
clause:
on mouseDown
if the clickOn = 1 then
if sprite(1).moveableSprite = TRUE then
member("Notice").text = "Drag the ball"
else nothing
else member("Notice").text = "Click again"
end if
end
This handler instructs the movie to do nothing so long as the mouse button is being pressed:
on mouseDown
repeat while the stillDown
nothing
end repeat
end mouseDown
See also
if
nudge
Syntax
sprite(
whichQTVRSprite
).nudge(
#direction
)
nudge(sprite
whichQTVRSprite
,
#direction
)
Description
QuickTime VR command; nudges the view perspective of the specified QuickTime VR sprite in
the direction specified by
#direction
. Possible values for
#direction
are
#down
,
#downLeft
,
#downRight
,
#left
,
#right
,
#up
,
#upLeft
, and
#upRight
. Nudging to the right causes the
image of the sprite to move to the left.
The
nudge
command has no return value.
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:
on mouseDown me
repeat while the stillDown
sprite(1).nudge(#left)
end repeat
end
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...