Interactive ElementsBehaviors

A collection of behavior objects.

Instance Properties

Name Description Access
length number The number of objects in the collection. read-only

Methods

anyItem(
)
 → Behavior
count(
)
 → number
everyItem(
)
 → Behavior
firstItem(
)
 → Behavior
item(
index)
 → Behavior
itemByID(
id)
 → Behavior
itemByName(
name)
 → Behavior
itemByRange(
from, to)
 → Behavior
lastItem(
)
 → Behavior
middleItem(
)
 → Behavior
nextItem(
obj)
 → Behavior
previousItem(
obj)
 → Behavior
toSource(
)
 → string
anyItem(
)
 → Behavior
Returns any Behavior in the collection.
count(
)
 → number
Displays the number of elements in the Behavior.
everyItem(
)
 → Behavior
Returns every Behavior in the collection.
firstItem(
)
 → Behavior
Returns the first Behavior in the collection.
item(
index)
 → Behavior
Returns the Behavior with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByID(
id)
 → Behavior
Returns the Behavior with the specified ID.
id number The ID.
itemByName(
name)
 → Behavior
Returns the Behavior with the specified name.
name string The name.
itemByRange(
from, to)
 → Behavior
Returns the Behaviors within the specified range.
from The Behavior, index, or name at the beginning of the range. Can accept: Behavior, Long Integer or String.
to The Behavior, index, or name at the end of the range. Can accept: Behavior, Long Integer or String.
lastItem(
)
 → Behavior
Returns the last Behavior in the collection.
middleItem(
)
 → Behavior
Returns the middle Behavior in the collection.
nextItem(
obj)
 → Behavior
Returns the Behavior whose index follows the specified Behavior in the collection.
obj Behavior The Behavior whose index comes before the desired Behavior.
previousItem(
obj)
 → Behavior
Returns the Behavior with the index previous to the specified index.
obj Behavior The index of the Behavior that follows the desired Behavior.
toSource(
)
 → string
Generates a string which, if executed, will return the Behavior.