duration (3D)
745
// JavaScript syntax
var movieRectangle = rect(10, 20, 200, 300);
window("Control Panel").drawRect = movieRectangle;
The following lines cause the Stage to fill the main monitor area:
-- Lingo syntax
_movie.stage.drawRect = _system.deskTopRectList[1]
_movie.stage.rect = _system.deskTopRectList[1]
// JavaScript syntax
_movie.stage.drawRect = _system.deskTopRectList[1];
_movie.stage.rect = _system.deskTopRectList[1];
See also
rect()
,
Window
dropShadow
Usage
-- Lingo syntax
memberObjRef
.dropShadow
// JavaScript syntax
memberObjRef
.dropShadow;
Description
Cast member property; determines the size of the drop shadow in pixels, for text in a field
cast member.
Example
This statement sets the drop shadow of the field cast member Comment to 5 pixels:
--Lingo syntax
member("Comment").dropShadow = 5
// JavaScript syntax
member("Comment").dropShadow = 5;
duration (3D)
Usage
member(
whichCastmember
).motion(
whichMotion
).duration
motionObjectReference
.duration
Description
3D property; lets you get the time in milliseconds that it takes the motion specified in the
whichMotion
parameter to play to completion. This property is always greater than or equal to 0.
Example
This statement shows the length in milliseconds of the motion Kick.
put member("GbMember").motion("Kick").duration
-- 5100.0000
See also
motion
,
currentTime (3D)
,
play() (3D)
,
queue() (3D)
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...