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

  • 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 328
307
EXTENDING FLASH PROFESSIONAL
HalfEdge object
Last updated 5/2/2011
Usage
halfEdge.getVertex()
Parameters
None.
Returns
A Vertex object
Description
Method; gets the Vertex object at the head of the HalfEdge object. See Vertex object
Example
The following example stores the Vertex object at the head of hEdge in the vertex variable:
var shape = fl.getDocumentDOM().selection[0];
var edge = shape.edges[0];
var hEdge = edge.getHalfEdge(0);
var vertex = hEdge.getVertex();
halfEdge.id
Availability
Flash MX 2004.
Usage
halfEdge.id
Description
Read-only property; a unique integer identifier for the HalfEdge object.
Example
The following example displays a unique identifier for the specified half edge in the Output panel:
var shape = fl.getDocumentDOM().selection[0];
alert(shape.contours[0].getHalfEdge().id);
halfEdge.index
Availability
Flash MX 2004.
Usage
halfEdge.index
Zobrazit stránku 328
1 2 ... 324 325 326 327 328 329 330 331 332 333 334 ... 564 565

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

Žádné komentáře