Adobe Extending Flash Professional CS5 User Manual Page 327

  • Download
  • Add to my manuals
  • Print
  • Page
    / 565
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 326
305
EXTENDING FLASH PROFESSIONAL
HalfEdge object
Last updated 5/2/2011
Returns
An Edge object.
Description
Method; gets the Edge object for the HalfEdge object. See Edge object.
Example
The following example illustrates getting an edge and a half edge for the specified shape:
var shape = fl.getDocumentDOM().selection[0];
var hEdge = shape.edges[0].getHalfEdge(0);
var edge = hEdge.getEdge();
halfEdge.getNext()
Availability
Flash MX 2004.
Usage
halfEdge.getNext()
Parameters
None.
Returns
A HalfEdge object.
Description
Method; gets the next half edge on the current contour.
Note: Although half edges have a direction and a sequence order, edges do not.
Example
The following example stores the next half edge of the specified contour in the nextHalfEdge variable:
var shape = fl.getDocumentDOM().selection[0];
var hEdge = shape.edges[0].getHalfEdge( 0 );
var nextHalfEdge = hEdge.getNext();
halfEdge.getOppositeHalfEdge()
Availability
Flash MX 2004.
Usage
halfEdge.getOppositeHalfEdge()
Page view 326
1 2 ... 322 323 324 325 326 327 328 329 330 331 332 ... 564 565

Comments to this Manuals

No comments