Extending Flash |
|
|
|
| Objects > Stroke object > stroke.style | |||
Flash MX 2004.
stroke.style
Property; a string that describes the stroke style. Acceptable values are "noStroke", "solid", "dashed", "dotted", "ragged", "stipple", and "hatched". Some of these values require additional properties of the Stroke object to be set, as described in the following list:
"solid" or "noStroke", there are no other properties."dashed", there are two additional properties: "dash1" and "dash2"."dotted", there is one additional property: "dotSpace"."ragged", there are three additional properties: "pattern", "waveHeight", and "waveLength"."stipple", there are three additional properties: "dotSize", "variation", and "density"."hatched", there are six additional properties: "hatchThickness", "space", "jiggle", "rotate", "curve", and "length".The following example sets the stroke style to "ragged":
var myStroke = fl.getDocumentDOM().getCustomStroke(); myStroke.style = "ragged"; fl.getDocumentDOM().setCustomStroke(myStroke);
|
|
|
|