Edge.splitedge() - 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

Example
The following example sets the beginning control point of the specified edge to the (0, 1)
coordinates:
x = 0; y = 1;
var shape = fl.getDocumentDOM().selection[0];
shape.beginEdit();
shape.edges[0].setControl(0, x, y);
shape.endEdit();

edge.splitEdge()

Availability
Flash MX 2004.
Usage
edge.splitEdge( t )
Parameters
A floating point value between 0 and 1 that specifies where to split the edge. A value of 0
t
represents one end point, and 1 the other. For example, passing a value of 0.5 splits the edge in
the middle, which, for a line is exactly in the center. If the edge represents a curve, 0.5 represents
the parametric middle of the curve.
Returns
Nothing.
Description
Method; splits the edge into two pieces. You must call
method.
Example
The following example splits the specified edge in half:
var shape = fl.getDocumentDOM().selection[0];
shape.beginEdit()
shape.edges[0].splitEdge( 0.5 );
shape.endEdit()
shape.beginEdit()
before using this
Edge object
145

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