- Subscribe to RSS Feed
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content
|
Represents a Test Clip within the Composition. Clip Properties
The name of this item. An item’s name can be changed by setting this property, with the following restrictions:
All of the following Clip properties are read-only:
The parent Track.
A PropertyList object that allows access to all of the Custom Properties contained in this Clip.
A SystemPropertyList object that allows access to all of the System Properties contained in this object.
The string "MessageClip".
An array of objects representing the children of this Clip, if any. Null if the Clip has no children.
An array of Target objects representing all of the Targets referenced by this Clip. Null if there are no Targets.
Returns the position (zero-based index) of this item’s parent’s array of children.
Returns the next item after this one in this item’s parent’s array of children, or null if this is the last item. In other words, returns the next sibling in the object hierarchy. Equivalent to:
Returns the previous item before this one in this item’s parent’s array of children, or null of this is the first item. In other words, returns the next sibling in the object hierarchy. Equivalent to:
If this item is repeating due to a “for-each” repeat, this property contains the for-each value associated with this instance of the object. This will be a value in the array used for the for-each. If this item is not repeating due to a “for-each” repeat, this property will be null.
An integer value that represents the “repeat index” of this item if it repeats, according to the context in which the current script is executing. The first repeat starts at index zero. The value is -1 if the current item does not repeat or has a repeat count of one (in other words, it is -1 if it doesn’t actually repeat).
An integer value that represents the “play ordinal number” of this item. Starting with the number 0, each play is assigned a unique number. The numbers are contiguous (no gaps). Play number sequences are maintained within the item’s parent only. For example, if a parent item repeats, then the child items inside each repeat of the parent will have their own play number sequence starting at 0. An item will only have a non-zero play number if it repeats. The play number is equivalent to the repeat index, except that the play number is 0 for items that don’t repeat or have a repeat count of one, whereas the repeat index would be -1 in those cases.
If this item repeats in parallel with the “Renew parallel repeats” option enabled, this is an integer value that is the “playNumber” value of the original parallel repeat for this item if it has been renewed because a prior parallel repeat ended. If this is the original parallel repeat, the value of For example, if parallel repeat number 5 of the item ends, but the Renew parallel repeats checkbox is enabled, the ending repeat will be replaced with a new, replacement repeat. The new repeat will have new repeatIndex and playNumber values (according to how many other repeats have already occurred). However, the playNumberBeforeRenewal value will still be 5 in this example. This property is always 0 for Composition, Checkpoint, Delay, and Target.
A constant that can be passed in calls to the "setRepeat" method. (See the description of the "setRepeat" method.)
A constant that can be passed in calls to the "setRepeat" method. (See the description of the "setRepeat" method.)
A constant that can be passed in calls to the "setRepeat" method. (See the description of the "setRepeat" method.)
A constant that can be passed in calls to the "setRepeat" method. (See the description of the "setRepeat" method.) |
|
If Dynamic-resource Caching is enabled for the Clip, this property contains the list of URLs currently in the cache. This list changes as Pages are played and dynamic resources are extracted from responses to the Main Message. The value is null if the Dynamic-Resource Cache is not enabled, or if the cache is empty. This property can be set to replace the entire cache. This can be done to modify the existing list of URLs, or to create an entirely new list of URLs. The value of the property is an array of Strings. Each String is the fully-qualified URL of a Page dynamic resource. The list that is returned is sorted. Any new list that is provided need not be sorted. Null entries in any new list provided are ignored. |
|
|
Here is an example Script that retrieves the current cache and displays it in the Result: |
|
|
Here is an example Script that replaces the entire current cache with a new list that contains two URLs: |
|
|
Here is an example Script that removes a specific URL from the cache, if it is there: |
|
|
Here is an example Script that adds a new URL to the current cache: |
|
Clip MethodsgetChildReturns a specific child object by name, or null if there is no child with the specified name. |
|
getTarget MethodReturns a specific Target object by name, or null if there is no Target with the specified name. |
|
getItemViaPath MethodGiven a type of item and the path to that item in the Composition object hierarchy, returns the object in the hierarchy that represents that item. The "itemType" parameter value indicates the type of item (not case sensitive):
The "path" parameter contains a path as specified for In Situ Substitution Specifications. The path can be relative to the current item (for example to specify another item in the same Clip, the Band, Track and Clip portions of the path can be omitted). |
|
clearRepeatRemoves any current repeating specification from this item (so that it will play exactly once).
|
void clearRepeat() |
setRepeat MethodSets a new repeating specification for this item. The "
|
void setRepeat(int timingType, intRepeat Type, long control, int distributionType, long distribution)
|
end MethodRequests that play of this Clip be terminated. If an optional error text string is provided, the Track will be considered to have ended in error. If the Clip is not currently playing, no action is taken. Note that this is not an “abort” – play will be ended after any currently playing item(s) in the Clip complete. |
|
endRepeat MethodRequests that repeating for this Clip be ended. If this Clip is not currently playing, no action is taken. Note that this is not an “abort” – repeating will be ended after any currently playing individual repeat of the Clip completes. This method is permitted for serial repeating only, it is not supported for parallel repeating and an error will be generated if it is attempted to call this method for a parallel repeat. |
|
