Halfedge.getnext(); Halfedge.getoppositehalfedge() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Description
Method; gets the
Example
The following example illustrates getting an edge and a half edge for the specified shape.
var shape = fl.getDocumentDOM().selection[0];
var halfEdge = shape.edges[0].getHalfEdge(0);
var edge = halfEdge.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
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()
Parameters
None.
Returns
A halfEdge object.
196
Chapter 3: Objects
Edge object
for the halfEdge object.
nextHalfEdge

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents