![MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual Download Page 269](http://html1.mh-extra.com/html/macromedia/flash-mx-2004-flash-javascript-dictionary/flash-mx-2004-flash-javascript-dictionary_manual_3377988269.webp)
Shape object
269
shape.isGroup
Availability
Flash MX 2004.
Usage
shape.isGroup
Description
Read-only property; if
true
, the shape is a group.
Example
The following example stores the first selected
item
object in the
sel
variable and then uses the
element.elementType
and
shape.isGroup
properties to test if the selected item is a group:
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
Vertex object
).
Example
The following example stores the first selected
item
object in the
someShape
variable and then
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. " vertices.");
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...