![MACROMEDIA FLASH 8-EXTENDING FLASH Manual Download Page 60](http://html1.mh-extra.com/html/macromedia/flash-8-extending-flash/flash-8-extending-flash_manual_3348049060.webp)
60
Objects
Example
The following example traverses all the contours of the selected shape and shows the value of
the
orientation
property of 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, orientation:" + contour.orientation);
conto+;
}
elt.endEdit();
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...