Chapter 10: contour object, Contour.fill – Adobe Extending Flash Professional CS5 User Manual
Page 73
51
Last updated 5/2/2011
Chapter 10: Contour object
Availability
Flash MX 2004.
Description
A Contour object represents a closed path of half edges on the boundary of a shape.
Method summary
You can use the following method with the Contour object:
Property summary
You can use the following properties with the Contour object:
contour.fill
Availability
Flash CS4 Professional.
Usage
contour.fill
Description
Property; a
Example
Assuming that you have a contour with a fill selected, the following example displays the contour’s fill color in the
Output panel:
var insideContour = fl.getDocumentDOM().selection[0].contours[1];
var insideFill = insideContour.fill;
fl.trace(insideFill.color);
Method
Description
on the contour of the selection.
Property
Description
.
Read-only; the value is
true
if the contour encloses an area;
false
otherwise.
Read-only; an integer indicating the orientation of the contour.