
138
Chapter 6: Vector Shapes
Choosing fill and line settings for vector shapes
You can use either controls in the Vector Shape window or Lingo or JavaScript syntax to choose a
vector shape’s fill color, line width and color, and background color. The background is the area
outside of a vector shape but within the cast member’s bounding rectangle.
Because a vector shape is a single object, you don’t need to select any part of the vector shape to
make the following changes.
To select the fill and line settings:
1
Open a vector shape in the Vector Shape window.
2
Select fill and line settings using the appropriate controls at the left of the window.
■
To set the line width, select a point size option from the Line Width menu.
■
To close or open vector shapes, select or deselect the Closed option (for more information,
see
“Editing vector shapes” on page 139
).
■
To choose the line color, select a color from the Line Color menu.
■
To choose the fill color, select a color from the Fill Color menu.
■
To set the background color, select a color from the Background Color menu. Choosing a
background color that matches the color of the background results in better performance
than using Background Transparent ink.
■
To set gradient fill colors, select colors from the Gradient Colors control. For more
information about creating gradient fill, see
“Editing vector shapes” on page 139
.
■
To set the fill type, select from the following Fill type control options: No Fill, Solid,
or Gradient.
Specifying vector shape fills and strokes with Lingo or JavaScript syntax
You can script in Lingo or JavaScript syntax to specify a vector shape’s fills and strokes.
To specify the strokes that form a vector shape in script:
•
Set the
strokeColor
and
strokeWidth
cast member properties. For more information about
these properties, see the Scripting Reference topics in the Director Help Panel.
Line width
Line color
Fill type controls
Gradient color controls
Fill color
Closed control
Background color
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...