MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 291

Extending flash
Table of Contents

Advertisement

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()
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
in the
variable:
hEdge
otherHalfEdge
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.
HalfEdge object
291

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents