// 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
parameter to play to completion. This property is always greater than or equal to 0.
whichMotion
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)
duration (3D)
745
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