beautypg.com

Chapter 13: edge object, Edge.cubicsegmentindex – Adobe Extending Flash Professional CS5 User Manual

Page 202

background image

180

Last updated 5/2/2011

Chapter 13: Edge object

Availability
Flash MX 2004.

Description
The Edge object represents an edge of a shape on the Stage.

Method summary
The following methods are available for the Edge object:

Property summary
The following properties are available for the Edge object:

edge.cubicSegmentIndex

Availability
Flash CS4 Professional.

Usage

edge.cubicSegmentIndex

Description
Read-only property; an integer that specifies the index value of a cubic segment of the edge (see

shape.getCubicSegmentPoints()

).

Example
The following code displays the index values of all the cubic segments of the specified edge:

Method

Description

edge.getControl()

Gets a point object set to the location of the specified control point of the edge.

edge.getHalfEdge()

Returns a

HalfEdge object

.

edge.setControl()

Sets the position of the control point of the edge.

edge.splitEdge()

Splits the edge into two pieces.

Property

Description

edge.cubicSegmentIndex

An integer that specifies the index value of a cubic segment of the edge.

edge.id

Read-only; an integer that represents a unique identifier for the edge.

edge.isLine

Read-only; an integer with a value of 0 or 1.

edge.stroke

A

Stroke object

.

This manual is related to the following products: