MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 1021

Director scripting reference
Table of Contents

Advertisement

strokeWidth
Usage
-- Lingo syntax
memberObjRef.strokeWidth
// JavaScript syntax
memberObjRef.strokeWidth;
Description
Vector shape cast member property; indicates the width, in pixels, of the shape's framing stroke.
The value is a floating-point number between 0 and 100 and can be tested and set.
To see an example of
the Learning/Lingo Examples folder inside the Director application folder.
Example
The following code sets the
-- Lingo syntax
member("line").strokeWidth = 10
// JavaScript syntax
member("line").strokeWidth = 10;
style
Usage
member(whichCastmember).model(whichModel).toon.style
member(whichCastmember).model(whichModel).shader.style
member(whichCastmember).shader(whichShader).style
Description
3D
modifier and
toon
shader apply color to a model. Possible values are as follows:
painter
uses sharp transitions between colors.
#toon
uses smooth transitions between colors. This is the default value.
#gradient
#blackAndWhite
The number of colors used by the
property of the modifier or shader.
Example
The following statement sets the
named Teapot to
member("Shapes").model("Teapot").toon.style = #blackAndWhite
used in a completed movie, see the Vector Shapes movie in
strokeWidth
strokeWidth
shader property; indicates the way the
painter
uses two-color black and white.
toon
style
. The model will be rendered in two-color black and white.
#blackAndWhite
of cast member "line" to 10 pixels:
modifier and
painter
property of the
modifier for the model
toon
modifier and
toon
shader is set with the
colorSteps
style 1021

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents