392
Objects
Example
The following example stores the first selected
item
object in the
sel
variable and then uses
the
element.elementType
and
shape.isDrawingObject
properties to determine if the
selected item is a drawing object.
var sel = fl.getDocumentDOM().selection[0];
var shapeDrawingObject = (sel.elementType == "shape") &&
sel.isDrawingObject;
fl.trace(shapeDrawingObject);
See also
document.crop()
,
document.deleteEnvelope()
,
document.intersect()
,
document.punch()
,
document.union()
,
shape.isGroup
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 determine if the selected item
is a group:
var sel = fl.getDocumentDOM().selection[0];
var shapeGroup = (sel.elementType == "shape") && sel.isGroup;
fl.trace(shapeGroup);
See also
shape.isDrawingObject
Содержание FLASH 8-EXTENDING FLASH
Страница 1: ...Extending Flash...
Страница 38: ...38 Top Level Functions and Methods...
Страница 532: ...532 Objects...
Страница 554: ...554 C Level Extensibility...