Adobe InDesign CS5 Server (7.0) Object Model JS: AnimationBehaviors

InDesign Server CS5

Class

AnimationBehaviors

 A collection of animation behaviors.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

AnimationBehavior [] (index: number)
Returns the AnimationBehavior with the specified index.

ParameterTypeDescription
indexnumberThe index.

AnimationBehavior add ([withProperties: Object])
Creates a new AnimationBehavior.

ParameterTypeDescription
withPropertiesObjectInitial values for properties of the new AnimationBehavior (Optional)

AnimationBehavior anyItem ()
Returns any AnimationBehavior in the collection.

number count ()
Displays the number of elements in the AnimationBehavior.

Array of AnimationBehavior everyItem ()
Returns every AnimationBehavior in the collection.

AnimationBehavior firstItem ()
Returns the first AnimationBehavior in the collection.

AnimationBehavior item (index: varies)
Returns the AnimationBehavior with the specified index or name.

ParameterTypeDescription
indexLong Integer
String
The index or name. Can accept: Long Integer or String.

AnimationBehavior itemByID (id: number)
Returns the AnimationBehavior with the specified ID.

ParameterTypeDescription
idnumberThe ID.

AnimationBehavior itemByName (name: string)
Returns the AnimationBehavior with the specified name.

ParameterTypeDescription
namestringThe name.

Array of AnimationBehavior itemByRange (from: varies, to: varies)
Returns the AnimationBehaviors within the specified range.

ParameterTypeDescription
fromAnimationBehavior
Long Integer
String
The AnimationBehavior, index, or name at the beginning of the range. Can accept: AnimationBehavior, Long Integer or String.
toAnimationBehavior
Long Integer
String
The AnimationBehavior, index, or name at the end of the range. Can accept: AnimationBehavior, Long Integer or String.

AnimationBehavior lastItem ()
Returns the last AnimationBehavior in the collection.

AnimationBehavior middleItem ()
Returns the middle AnimationBehavior in the collection.

AnimationBehavior nextItem (obj: AnimationBehavior)
Returns the AnimationBehavior whose index follows the specified AnimationBehavior in the collection.

ParameterTypeDescription
objAnimationBehaviorThe AnimationBehavior whose index comes before the desired AnimationBehavior.

AnimationBehavior previousItem (obj: AnimationBehavior)
Returns the AnimationBehavior with the index previous to the specified index.

ParameterTypeDescription
objAnimationBehaviorThe index of the AnimationBehavior that follows the desired AnimationBehavior.

string toSource ()
Generates a string which, if executed, will return the AnimationBehavior.

Element of

Button.animationBehaviors

Jongware, 23-Mar-2011 v3.0.3dContents :: Index