Edit in GitHubLog an issue

Behaviors

A collection of behavior objects.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the Behavior.


Behavior item( Mixed index )

Returns the Behavior with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

Behavior itemByName( String name )

Returns the Behavior with the specified name.

Parameters

TypeNameDescription
String
name
The name.

Behavior itemByID( Number id )

Returns the Behavior with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

Behavior itemByRange( Mixed from, Mixed to )

Returns the Behaviors within the specified range.

Parameters

TypeNameDescription
Mixed
from
The Behavior, index, or name at the beginning of the range. Can accept: Behavior, Long Integer or String.
Mixed
to
The Behavior, index, or name at the end of the range. Can accept: Behavior, Long Integer or String.

Behavior firstItem()

Returns the first Behavior in the collection.


Behavior lastItem()

Returns the last Behavior in the collection.


Behavior middleItem()

Returns the middle Behavior in the collection.


Behavior previousItem( Behavior obj )

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

Parameters

TypeNameDescription
Behavior
obj
The index of the Behavior that follows the desired Behavior.

Behavior nextItem( Behavior obj )

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

Parameters

TypeNameDescription
Behavior
obj
The Behavior whose index comes before the desired Behavior.

Behavior anyItem()

Returns any Behavior in the collection.


Behavior everyItem()

Returns every Behavior in the collection.


String toSource()

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


Behavior []( Number index )

Returns the Behavior with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.