Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 73

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 72
51
Last updated 5/2/2011
Chapter 10: 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
You can use the following method with the Contour object:
Property summary
You can use the following properties with the Contour object:
contour.fill
Availability
Flash CS4 Professional.
Usage
contour.fill
Description
Property; a Fill object.
Example
Assuming that you have a contour with a fill selected, the following example displays the contour’s fill color in the
Output panel:
var insideContour = fl.getDocumentDOM().selection[0].contours[1];
var insideFill = insideContour.fill;
fl.trace(insideFill.color);
Method Description
contour.getHalfEdge() Returns a HalfEdge object on the contour of the selection.
Property Description
contour.fill A Fill object.
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.
Zobrazit stránku 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 564 565

Komentáře k této Příručce

Žádné komentáře