Extending Flash |
|
|
|
| Objects > Document object > document.setStroke() | |||
Flash MX 2004.
document.setStroke(color,size,strokeType)
color The color of the stroke, in one of the following formats:
"#RRGGBB" or "#RRGGBBAA"0xRRGGBBsize A floating-point value that specifies the new stroke size for the selection.
strokeType A string that specifies the new type of stroke for the selection. Acceptable values are "hairline", "solid", "dashed", "dotted", "ragged", "stipple", and "hatched".
Nothing.
Method; sets the color, width, and style of the selected strokes. For information on changing the stroke in the Tools panel and Property inspector, see document.setCustomStroke().
The following example sets the color of the stroke to red, the size to 3.25, and the type to dashed:
fl.getDocumentDOM().setStroke("#ff0000", 3.25, "dashed");
|
|
|
|