beautypg.com

Shape.isovalobject, Shape.isrectangleobject, Shape.members – Adobe Extending Flash Professional CS4 User Manual

Page 411

background image

389

EXTENDING FLASH CS4 PROFESSIONAL

Shape object

shape.isOvalObject

Availability
Flash CS3 Professional.

Usage

shape.isOvalObject

Description
Read-only property; if

true

, the shape is a primitive Oval object (was created using the Oval Primitive tool).

Example
The following example displays

"true"

if the first selected item is a primitive Oval object, and

"false"

if it is not:

var sel = fl.getDocumentDOM().selection[0];

fl.trace(sel.isOvalObject);

See also

shape.isRectangleObject

shape.isRectangleObject

Availability
Flash CS3 Professional.

Usage

shape.isRectangleObject

Description
Read-only property; if

true

, the shape is a primitive Rectangle object (was created using the Rectangle Primitive tool).

Example
The following example displays "

true

" if the first selected item is a primitive Rectangle object, "

false

" if it is not:

var sel = fl.getDocumentDOM().selection[0];

fl.trace(sel.isRectangleObject);

See also

shape.isOvalObject

shape.members

Availability
Flash CS4 Professional.