AnimationSetting
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
designOption | DesignOptions: DesignOptions.FROM_CURRENT_APPEARANCE DesignOptions.TO_CURRENT_APPEARANCE DesignOptions.TO_CURRENT_LOCATION |
r/w | The animation design option. |
duration | number (range: 0.125 - 60) | r/w | The duration in second for this animation. |
easeType | AnimationEaseOptions: AnimationEaseOptions.NO_EASE AnimationEaseOptions.EASE_IN AnimationEaseOptions.EASE_OUT AnimationEaseOptions.EASE_IN_OUT AnimationEaseOptions.CUSTOM_EASE |
r/w | The ease type. |
eventListeners | EventListeners | readonly | A collection of event listeners. |
events | Events | readonly | A collection of events. |
hasCustomSettings | bool | readonly | Determines if this animated object has custom settings. |
hiddenAfter | bool | r/w | Determines if this object is hidden after its animation is played in an exported SWF file. |
initiallyHidden | bool | r/w | Determines if this object is initially hidden when displayed in an exported SWF file. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
motionPath |
Array
of Array of 2 Reals Ordered array containing keyFrame:Long Integer Array of 2 Reals Array of 2 Reals |
r/w | The list of motion path points and key frames for this animation. Can return: Ordered array containing keyFrame:Long Integer, pathPoint:Ordered array containing anchor:Array of 2 Reals, leftDirection:Array of 2 Reals, rightDirection:Array of 2 Reals. |
motionPathPoints |
Array
of 2 Reals Array of Array of 2 Reals pathOpen:Boolean Array of 2 Reals |
r/w | The list of motion path points for this animation. Can return: Ordered array containing pathPointArray:Array of Ordered array containing anchor:Array of 2 Reals, leftDirection:Array of 2 Reals, rightDirection:Array of 2 Reals, pathOpen:Boolean. |
opacityArray |
Array
of Ordered array containing keyFrame:Long Integer value:Real |
r/w | The list of opacity key frames for this animation. Can return: Ordered array containing keyFrame:Long Integer, value:Real. |
parent | Button EPS EPSText FormField Graphic GraphicLine Group Image ImportedPage MediaItem Movie MultiStateObject Oval PageItem PICT Polygon Rectangle Sound SplineItem TextFrame WMF |
readonly | The parent of the AnimationSetting (a PageItem, FormField, MultiStateObject, Button, MediaItem, Sound, Movie, EPSText, SplineItem, Polygon, GraphicLine, Rectangle, Oval, Graphic, ImportedPage, PICT, WMF, PDF, EPS, Image, Group or TextFrame). |
plays | number (range: 1 - 100) | r/w | The number of times this animation plays. |
playsLoop | bool | r/w | Set to true if animation play loops. |
preset | MotionPreset NothingEnum String |
r/w | The base animation preset applied. Can return: MotionPreset, String or NothingEnum enumerator. |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
rotationArray |
Array
of Ordered array containing keyFrame:Long Integer value:Real |
r/w | The list of rotation key frames for this animation. Can return: Ordered array containing keyFrame:Long Integer, value:Real. |
scaleXArray |
Array
of Ordered array containing keyFrame:Long Integer value:Real |
r/w | The list of scale x key frames for this animation. Can return: Ordered array containing keyFrame:Long Integer, value:Real. |
scaleYArray |
Array
of Ordered array containing keyFrame:Long Integer value:Real |
r/w | The list of scale y key frames for this animation. Can return: Ordered array containing keyFrame:Long Integer, value:Real. |
transformOffsets | Array of number | r/w | The tranform offset percentage from the target object bounding box's left-top corner. |
Methods
Instances
EventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
Array
of AnimationSetting getElements ()
Resolves the object specifier, creating an array of object references.
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
MotionPreset save (name:
string)
Save this motion preset as custom preset.
Parameter | Type | Description |
---|---|---|
name | string | The name for the new motion preset. |
void saveACopy (to:
File)
Save a copy of this motion preset to a InDesign motion preset file.
Parameter | Type | Description |
---|---|---|
to | File | The Flash motion preset file to export to. |
string toSource ()
Generates a string which, if executed, will return the AnimationSetting.
Element of
Button.animationSettings
EPS.animationSettings
EPSText.animationSettings
FormField.animationSettings
Graphic.animationSettings
GraphicLine.animationSettings
Group.animationSettings
Image.animationSettings
ImportedPage.animationSettings
MediaItem.animationSettings
Movie.animationSettings
MultiStateObject.animationSettings
Oval.animationSettings
PDF.animationSettings
PICT.animationSettings
PageItem.animationSettings
Polygon.animationSettings
Rectangle.animationSettings
Sound.animationSettings
SplineItem.animationSettings
TextFrame.animationSettings
WMF.animationSettings
Return
Array of AnimationSetting AnimationSetting.getElements ()
Jongware, 23-Mar-2011 v3.0.3d | Contents :: Index |