Interactive ElementsSoundBehaviors

A collection of sound behavior objects.

Instance Properties

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

Methods

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