Edge.isline; Edge.setcontrol() - 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

edge.isLine

Availability
Flash MX 2004.
Usage
edge.isLine
Description
Read-only property; an integer with a value of 0 or 1. A value of 1 indicates that the edge is a
straight line. In that case, the middle control point bisects the line joining the two end points.
Example
The following example determines whether the specified edge is a straight line, and shows a value
of 1 (it is a straight line) or 0 (it isn't a straight line) in the Output panel:
var shape = fl.getDocumentDOM().selection[0];
fl.trace(shape.edges[0].isLine);

edge.setControl()

Availability
Flash MX 2004.
Usage
edge.setControl( index, x, y )
Parameters
specifies which control point to set. Use values 0, 1, or 2 to specify the beginning,
index
middle, and end control points, respectively.
A floating point value that specifies the horizontal location of the control point. If the Stage is
x
in Edit or Edit-in-place mode, the point coordinate is relative to the edited object. Otherwise, the
point coordinate is relative to the Stage.
A floating point value that specifies the vertical location of the control point. If the Stage is in
y
Edit or Edit-in-place mode, the point coordinate is relative to the edited object. Otherwise, the
point coordinate is relative to the Stage.
Returns
Nothing.
Description
Method; sets the position of the control point of the edge. You must call
before using this method.
144
Chapter 3: Objects
shape.beginEdit()

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents