MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 60

Extending flash
Table of Contents

Advertisement

Example
The following example traverses all the contours of the selected shape and shows the value of
the
property of each contour in the Output panel:
orientation
var elt = fl.getDocumentDOM().selection[0];
elt.beginEdit();
var contourArray = elt.contours;
var contourCount = 0;
for (i=0;
i<contourArray.length;
var contour = contourArray[i];
fl.trace("Next Contour, orientation:" + contour.orientation);
contourCount++;
}
elt.endEdit();
60
Objects
i++) {

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents