Contour object
57
elt.beginEdit();
var contourArray = elt.contours;
var contourCount = 0;
for (i=0; i<contourArray.length; i++)
{
var contour = contourArray[i];
conto+;
var he = contour.getHalfEdge();
var iStart = he.id;
var id = 0;
while (id != iStart)
{
// get the next vertex
var vrt = he.getVertex();
var x = vrt.x;
var y = vrt.y;
fl.trace("vrt: " + x + ", " + y);
he = he.getNext();
id = he.id;
}
}
elt.endEdit();
contour.interior
Availability
Flash MX 2004.
Usage
contour.interior
Description
Read-only property: the value is
true
if the contour encloses an area;
false
otherwise.
Example
This example traverses all the contours in the selected shape and shows the value of the
interior
property for each contour in the Output panel:
var elt = fl.getDocumentDOM().selection[0];
elt.beginEdit();
var contourArray = elt.contours;
var contourCount = 0;
for (i=0; i<contourArray.length; i++) {
var contour = contourArray[i];
fl.trace("Next Contour, interior:" + contour.interior );
conto+;
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 ...