MotionPreset
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
contents | string | r/w | Motion preset raw data |
eventListeners | EventListeners | readonly | A collection of event listeners. |
events | Events | readonly | A collection of events. |
id | number | readonly | The unique ID of the MotionPreset. |
index | number | readonly | The index of the MotionPreset within its containing object. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
label | string | r/w | A property that can be set to any string. |
name | string | r/w | The name of the MotionPreset. |
parent | ApplicationDocument | readonly | The parent of the MotionPreset (a Application or Document). |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
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) |
MotionPreset duplicate ([name:
string])
Duplicates the motion preset.
Parameter | Type | Description |
---|---|---|
name | string | The name for the duplicated motion preset. (Optional) |
string extractLabel (key:
string)
Gets the label value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
Array
of MotionPreset getElements ()
Resolves the object specifier, creating an array of object references.
void insertLabel (key:
string, value:
string)
Sets the label to the value associated with the specified key.
Parameter | Type | Description |
---|---|---|
key | string | The key. |
value | string | The value. |
void remove ()
Deletes the MotionPreset.
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) |
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 MotionPreset.
Element of
AnimationSetting.preset
Used in:
MotionPreset MotionPresets.nextItem (obj: MotionPreset)
MotionPreset MotionPresets.previousItem (obj: MotionPreset)
Return
MotionPreset AnimationSetting.save (name: string)
MotionPreset Application.loadMotionPreset (from: File)
MotionPreset MotionPreset.duplicate ([name: string])
Array of MotionPreset MotionPreset.getElements ()
MotionPreset MotionPresets.[] (index: number)
MotionPreset MotionPresets.add ([withProperties: Object])
MotionPreset MotionPresets.anyItem ()
Array of MotionPreset MotionPresets.everyItem ()
MotionPreset MotionPresets.firstItem ()
MotionPreset MotionPresets.item (index: varies)
MotionPreset MotionPresets.itemByID (id: number)
MotionPreset MotionPresets.itemByName (name: string)
Array of MotionPreset MotionPresets.itemByRange (from: varies, to: varies)
MotionPreset MotionPresets.lastItem ()
MotionPreset MotionPresets.middleItem ()
MotionPreset MotionPresets.nextItem (obj: MotionPreset)
MotionPreset MotionPresets.previousItem (obj: MotionPreset)
Jongware, 23-Mar-2011 v3.0.3d | Contents :: Index |