Extending Flash |
|
|
|
| Objects > Shape object > shape.isGroup | |||
Flash MX 2004.
shape.isGroup
Read-only property; if true, the shape is a group.
The following example stores the first selected item object in the sel variable and then uses the element.elementType and shape.isGroup properties to determine if the selected item is a group:
var sel = fl.getDocumentDOM().selection[0]; var shapeGroup = (sel.elementType == "shape") && sel.isGroup; fl.trace(shapeGroup);
|
|
|
|