Interactive ElementsTimingTargets

A collection of timing target.

Instance Properties

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

Methods

add(
dynamicTarget ​[, delaySeconds] ​[, withProperties])
 → TimingTarget
count(
)
 → number
item(
index)
 → TimingTarget
itemByRange(
from, to)
 → TimingTarget
nextItem(
obj)
 → TimingTarget
toSource(
)
 → string
add(
dynamicTarget ​[, delaySeconds=0] ​[, withProperties])
 → TimingTarget
Adds a new target item.
dynamicTarget A page item target that is an animation, media, or mso. Can accept: PageItem, Graphic, Behavior or MediaItem.
delaySeconds number The time delay in seconds for a target. (Optional)
withProperties Object Initial values for properties of the new TimingTarget (Optional)
anyItem(
)
 → TimingTarget
Returns any TimingTarget in the collection.
count(
)
 → number
Displays the number of elements in the TimingTarget.
everyItem(
)
 → TimingTarget
Returns every TimingTarget in the collection.
firstItem(
)
 → TimingTarget
Returns the first TimingTarget in the collection.
item(
index)
 → TimingTarget
Returns the TimingTarget with the specified index or name.
index The index or name. Can accept: Long Integer or String.
itemByRange(
from, to)
 → TimingTarget
Returns the TimingTargets within the specified range.
from The TimingTarget, index, or name at the beginning of the range. Can accept: TimingTarget, Long Integer or String.
to The TimingTarget, index, or name at the end of the range. Can accept: TimingTarget, Long Integer or String.
lastItem(
)
 → TimingTarget
Returns the last TimingTarget in the collection.
middleItem(
)
 → TimingTarget
Returns the middle TimingTarget in the collection.
nextItem(
obj)
 → TimingTarget
Returns the TimingTarget whose index follows the specified TimingTarget in the collection.
obj TimingTarget The TimingTarget whose index comes before the desired TimingTarget.
previousItem(
obj)
 → TimingTarget
Returns the TimingTarget with the index previous to the specified index.
obj TimingTarget The index of the TimingTarget that follows the desired TimingTarget.
toSource(
)
 → string
Generates a string which, if executed, will return the TimingTarget.