Behaviors

A collection of behavior objects.

Methods:

anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Behavior anyItem ()

Returns any Behavior in the collection.

Number count ()

Displays the number of elements in the Behavior.

Behavior everyItem ()

Returns every Behavior in the collection.

Behavior firstItem ()

Returns the first Behavior in the collection.

Behavior item (index:Varies Long String)

Returns the Behavior with the specified index or name.

Parameter

Type

Description

index

Long

String

The index or name. Can accept: Long or String.

Behavior itemByID (id:Number)

Returns the Behavior with the specified ID.

Parameter

Type

Description

id

Number

The ID.

Behavior itemByName (name:String)

Returns the Behavior with the specified name.

Parameter

Type

Description

name

String

The name.

Behavior itemByRange (from:Varies Behavior Long String, to:Varies Behavior Long String)

Returns the Behaviors within the specified range.

Parameter

Type

Description

from

Behavior

Long

String

The Behavior, index, or name at the beginning of the range. Can accept: Behavior, Long or String.

to

Behavior

Long

String

The Behavior, index, or name at the end of the range. Can accept: Behavior, Long or String.

Behavior lastItem ()

Returns the last Behavior in the collection.

Behavior middleItem ()

Returns the middle Behavior in the collection.

Behavior nextItem (obj:Behavior)

Returns the Behavior whose index follows the specified Behavior in the collection.

Parameter

Type

Description

obj

Behavior

The Behavior whose index comes before the desired Behavior.

Behavior previousItem (obj:Behavior)

Returns the Behavior with the index previous to the specified index.

Parameter

Type

Description

obj

Behavior

The index of the Behavior that follows the desired Behavior.

String toSource ()

Generates a string which, if executed, will return the Behavior.

Object of

FormField.behaviors

Button.behaviors