Adobe Extending Flash Professional CS4 Bedienungsanleitung Seite 422

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 560
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 421
400
Chapter 40: Stroke object
Availability
Flash MX 2004.
Description
The Stroke object contains all the settings for a stroke, including the custom settings. This object represents the
information contained in the Property inspector. Using the Stroke object together with the
document.setCustomStroke() method, you can change the stroke settings for the Tools panel, the Property
inspector, and the current selection. You can also get the stroke settings of the Tools panel and Property inspector, or
of the current selection, by using the
document.getCustomStroke() method.
This object always has the following four properties: style, thickness, color, and breakAtCorners. (In Flash CS3,
the
breakAtCorners property was deprecated in favor of stroke.joinType.) Other properties can be set, depending
on the value of the stroke.style property.
Property summary
The following properties are available for the Stroke object:
Property Description
stroke.breakAtCorners A Boolean value, same as the Sharp Corners setting in the custom Stroke Style dialog box.
stroke.capType A string that specifies the type of cap for the stroke.
stroke.color A string, hexadecimal value, or integer that represents the stroke color.
stroke.curve A string that specifies the type of hatching for the stroke.
stroke.dash1 An integer that specifies the lengths of the solid part of a dashed line.
stroke.dash2 An integer that specifies the lengths of the blank part of a dashed line.
stroke.density A string that specifies the density of a stippled line.
stroke.dotSize A string that specifies the dot size of a stippled line.
stroke.dotSpace An integer that specifies the spacing between dots in a dotted line.
stroke.hatchThickness A string that specifies the thickness of a hatch line.
stroke.jiggle A string that specifies the jiggle property of a hatched line.
stroke.joinType A string that specifies the type of join for the stroke.
stroke.length A string that specifies the length of a hatch line.
stroke.miterLimit A float value that specifies the angle above which the tip of the miter will be truncated
by a segment.
stroke.pattern A string that specifies the pattern of a ragged line.
stroke.rotate A string that specifies the rotation of a hatch line.
stroke.scaleType A string that specifies the type of scale to be applied to the stroke.
stroke.shapeFill A Fill object that represents the fill settings of the stroke.
stroke.space A string that specifies the spacing of a hatched line.
Seitenansicht 421
1 2 ... 417 418 419 420 421 422 423 424 425 426 427 ... 559 560

Kommentare zu diesen Handbüchern

Keine Kommentare