Adobe Extending Flash Professional CS5 Manuale Utente Pagina 75

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 74
53
EXTENDING FLASH PROFESSIONAL
Contour object
Last updated 5/2/2011
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 of 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 );
contourCount++;
}
elt.endEdit();
contour.orientation
Availability
Flash MX 2004.
Usage
contour.orientation
Description
Read-only property; an integer indicating the orientation of the contour. The value of the integer is -1 if the orientation
is counterclockwise, 1 if it is clockwise, and 0 if it is a contour with no area.
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:
Vedere la pagina 74
1 2 ... 70 71 72 73 74 75 76 77 78 79 80 ... 564 565

Commenti su questo manuale

Nessun commento