Adobe Extending Flash Professional CS5 Manuale Utente Pagina 328

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 327
306
EXTENDING FLASH PROFESSIONAL
HalfEdge object
Last updated 5/2/2011
Parameters
None.
Returns
A HalfEdge object.
Description
Method; gets the HalfEdge object on the other side of the edge.
Example
The following example stores the half edge opposite hEdge in the otherHalfEdge variable:
var shape = fl.getDocumentDOM().selection[0];
var hEdge = shape.edges[0].getHalfEdge(0);
var otherHalfEdge = hEdge.getOppositeHalfEdge();
halfEdge.getPrev()
Availability
Flash MX 2004.
Usage
halfEdge.getPrev()
Parameters
None.
Returns
A HalfEdge object.
Description
Method; gets the preceding HalfEdge object on the current contour.
Note: Although half edges have a direction and a sequence order, edges do not.
Example
The following example stores the previous half edge of the specified contour in the prevHalfEdge variable:
var shape = fl.getDocumentDOM().selection[0];
var hEdge = shape.edges[0].getHalfEdge( 0 );
var prevHalfEdge = hEdge.getPrev();
halfEdge.getVertex()
Availability
Flash MX 2004.
Vedere la pagina 327
1 2 ... 323 324 325 326 327 328 329 330 331 332 333 ... 564 565

Commenti su questo manuale

Nessun commento