MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 392

Extending flash
Table of Contents

Advertisement

Example
The following example stores the first selected
the
element.elementType
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.punch()
shape.isGroup
Availability
Flash MX 2004.
Usage
shape.isGroup
Description
Read-only property; if
Example
The following example stores the first selected
the
element.elementType
is a group:
var sel = fl.getDocumentDOM().selection[0];
var shapeGroup = (sel.elementType == "shape") && sel.isGroup;
fl.trace(shapeGroup);
See also
shape.isDrawingObject
392
Objects
and
shape.isDrawingObject
,
document.union()
, the shape is a group.
true
and
shape.isGroup
object in the
item
properties to determine if the
,
document.intersect()
shape.isGroup
object in the
item
properties to determine if the selected item
variable and then uses
sel
,
variable and then uses
sel

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents