beautypg.com

Chapter 30: oval object, Ovalobject.closepath, Oval object – Adobe Extending Flash Professional CS5 User Manual

Page 370: For examples

background image

348

Last updated 5/2/2011

Chapter 30: Oval object

Inheritance

Element object

>

Shape object

> Oval object

Availability
Flash CS3 Professional.

Description
The Oval object is a shape that is drawn using the Oval Primitive tool. To determine if an item is an Oval object, use

shape.isOvalObject

.

Property summary
In addition to the

Shape object

properties, you can use the following properties with the Oval object. To set the

properties of an Oval object, use

document.setOvalObjectProperty()

.

OvalObject.closePath

Availability
Flash CS3 Professional.

Usage

OvalObject.closePath

Description
Read-only property; a Boolean value that specifies whether the Close Path check box in the Property inspector is
selected. If the start angle and end angle values for the object are the same, setting this property has no effect until the
values change.

To set this value, use

document.setOvalObjectProperty()

.

Example
The following example deselects the

OvalObject.closePath

property:

fl.getDocumentDOM().setOvalObjectProperty("closePath",false);

See also

document.setOvalObjectProperty()

,

shape.isOvalObject

Property

Description

OvalObject.closePath

Read-only; a Boolean value that specifies whether the Close Path check box in the Property
inspector is selected.

OvalObject.endAngle

Read-only; a float value that specifies the end angle of the Oval object.

OvalObject.innerRadius

Read-only; a float value that specifies the inner radius of the Oval object as a percentage.

OvalObject.startAngle

Read-only; a float value that specifies the start angle of the Oval object.

This manual is related to the following products: