visible 1085
Example
This handler accepts a sprite reference as a parameter and moves the view of a Flash movie sprite
from the top to the bottom within the sprite’s bounding: rectangle:
-- Lingo syntax
on panDown(whichSprite)
repeat with i = 120 down to -120
sprite(whichSprite).viewV = i
_movie.updateStage()
end repeat
end
// JavaScript syntax
function panDown(whichSprite) {
var i = 120;
while(i > -121) {
sprite(whichSprite).viewV = i;
_movie.updateStage();
i--;
}
}
See also
scaleMode
,
viewV
,
viewPoint
,
viewH
visible
Usage
-- Lingo syntax
windowObjRef
.visible
// JavaScript syntax
windowObjRef
.visible;
Description
Window property; determines whether a window is visible (
TRUE
) or not (
FALSE
). Read/write.
Example
This statement makes the window named Control_Panel visible:
-- Lingo syntax
window("Control_Panel").visible = TRUE
// JavaScript syntax
window("Control_Panel").visible = true;
See also
Window
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...