|
Flash CS4 Resources |
document.getCustomStroke()Parameters
ReturnsThe Stroke object specified by the locationOfStroke parameter, if successful; otherwise, it returns undefined. DescriptionReturns the stroke object of the selected shape or, if specified, of the Tools panel and Property inspector. ExampleThe following example returns the current stroke settings of the selection and changes the stroke thickness to 2: var stroke = fl.getDocumentDOM().getCustomStroke("selection");
stroke.thickness = 2;
fl.getDocumentDOM().setCustomStroke(stroke);
The following example returns the current stroke settings of the Tools panel and Property inspector and sets the stroke color to red: var stroke = fl.getDocumentDOM().getCustomStroke("toolbar");
stroke.color = "#FF0000";
fl.getDocumentDOM().setCustomStroke(stroke);
|