EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 769

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
fillCycles 769
fillColor
Usage
-- Lingo syntax
memberObjRef.fillColor
// JavaScript syntax
memberObjRef.fillColor;
Description
Vector shape cast member property; the color of the shape’s fill specified as an RGB value.
It’s possible to use
fillColor when the fillMode property of the shape is set to #solid or
#gradient, but not if it is set to #none. If the fillMode is #gradient, fillColor specifies the
starting color for the gradient. The ending color is specified with
endColor.
This property can be tested and set.
To see an example of
fillColor used in a completed movie, see the Vector Shapes movie in the
Learning/Lingo Examples folder inside the Director application folder.
Example
This statement sets the fill color of the member Archie to a new RGB value:
-- Lingo syntax
member("Archie").fillColor = color( 24, 15, 153)
// JavaScript syntax
member("Archie").fillColor = color( 24, 15, 153);
See also
endColor, fillMode
fillCycles
Usage
-- Lingo syntax
memberObjRef.fillCycles
// JavaScript syntax
memberObjRef.fillCycles;
Description
Vector shape cast member property; the number of fill cycles in a gradient vector shape’s fill, as
specified by an integer value from 1 to 7.
This property is valid only when the
fillMode property of the shape is set to #gradient.
This property can be tested and set.
To see an example of
fillCycles used in a completed movie, see the Vector Shapes movie in the
Learning/Lingo Examples folder inside the Director application folder.