Adobe Extending Flash Professional CS4 Bedienungsanleitung Seite 316

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 560
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 315
294
EXTENDING FLASH CS4 PROFESSIONAL
HalfEdge object
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
Seitenansicht 315
1 2 ... 311 312 313 314 315 316 317 318 319 320 321 ... 559 560

Kommentare zu diesen Handbüchern

Keine Kommentare