beautypg.com

Chapter 10: contour object, Contour.fill – Adobe Extending Flash Professional CS5 User Manual

Page 73

background image

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

Fill object

.

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

contour.getHalfEdge()

Returns a

HalfEdge object

on the contour of the selection.

Property

Description

contour.fill

A

Fill object

.

contour.interior

Read-only; the value is

true

if the contour encloses an area;

false

otherwise.

contour.orientation

Read-only; an integer indicating the orientation of the contour.

This manual is related to the following products: