56
Chapter 3: Objects
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 for the Contour object
You can use the following method with the Contour object:
Property summary for the Contour object
You can use the following properties with the Contour object:
contour.getHalfEdge()
Availability
Flash MX 2004.
Usage
contour.getHalfEdge()
Parameters
None.
Returns
A
HalfEdge object
.
Description
Method; returns a
HalfEdge object
on the contour of the selection.
Example
This example traverses all the contours of a selected shape and shows the coordinates of the
vertices in the Output panel:
// with a shape selected
var elt = fl.getDocumentDOM().selection[0];
Property
Description
contour.getHalfEdge()
Method; returns a
HalfEdge object
on the contour of the selection.
Property
Description
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.
CHAPTER 3
Objects
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...