Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 926 Bytes

File metadata and controls

28 lines (17 loc) · 926 Bytes

shape.isDrawingObject

Availability

Flash 8.

Usage

shape.isDrawingObject

Description

Read-only property; if true, the shape is a drawing object.

Example

The following example stores the first selected 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