shape.isGroup
Availability
Flash MX 2004.
Usage
shape.isGroup
Description
Read-only property; if
Example
The following example stores the first selected
element.elementType
var sel = fl.getDocumentDOM().selection[0];
var theShapeIsReallyAGroup = (sel.elementType == "shape") && sel.isGroup;
shape.vertices
Availability
Flash MX 2004.
Usage
shape.vertices
Description
Read-only property; an array of Vertex objects (see
Example
The following example stores the first selected
shows the number of vertices for that object in the Output panel:
var someShape = fl.getDocumentDOM().selection[0];
fl.trace("The shape has " + someShape.vertices.length + " vertices.");
, the shape is a group.
true
and
shape.isGroup
object in the
item
sel
properties to test if the selected item is a group:
Vertex
object).
object in the
item
someShape
variable and then uses the
variable and then
Shape object
269
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?