Adobe Extending Flash Professional CS4 Manuel d'utilisateur Page 315

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 560
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 314
293
EXTENDING FLASH CS4 PROFESSIONAL
HalfEdge object
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.
Vue de la page 314
1 2 ... 310 311 312 313 314 315 316 317 318 319 320 ... 559 560

Commentaires sur ces manuels

Pas de commentaire