- Subscribe to RSS Feed
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content
|
Represents a Message within the Composition. Message Properties
The name of this Message. An item’s name can be changed by setting this property, with the following restrictions:
The parent Clip.
A SystemPropertyList object that allows access to all of the System Properties contained in this object.
The string "
Always null
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.
The Target object for this Message. Can be null.
A constant that can be passed in calls to the "
A constant that can be passed in calls to the "
A constant that can be passed in calls to the "
A constant that can be passed in calls to the "
A constant that can be passed as the "
A constant that can be passed as the "
A constant that can be passed as the "
A constant that can be passed as the “indicator” parameter in calls to the “getResponse” method. This change affects the “getResponse” method of the “Message” object, which now allows retrieval of all HTTP headers from any response, including when the same header appears multiple times in the response.
A constant that can be passed as the "
A constant that can be passed as the "
A constant that can be passed as the "
A constant that can be passed as the "
A constant that can be passed as the “indicator” parameter in calls to the "
A constant that can be passed as the “indicator” parameter in calls to the "
A constant that can be passed as the "
A constant that can be passed as the “indicator” parameter in calls to the "
|
||
Message Methods |
||
getChildAlways returns null. |
|
|
getItemViaPathGiven 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 "
The " |
|
|
clearRepeatRemoves any current repeating specification from this item (so that it will play exactly once). |
|
|
setRepeatSets a new repeating specification for this item. See the description of this method in the description of the Band object. |
|
|
getResponseReturns all or the specified portion of the response, if a response has been received. Can return null. Depending upon the situation, either null, String or array of String is returned.
Returns the entire text of the response received as a string.
Returns the body of the HTTP response received as a string.
Returns one HTTP header from the response received as a string.
Returns the protocol value from the HTTP response received as a string.
Returns the status code from the HTTP response received as a string.
Returns the status text from the HTTP response received as a string.
Parses the entire response text as XML, evaluates an XPath expression for that XML, and returns the result of that XPath expression.
Parses the entire response text as HTML, evaluates an XPath expression for that HTML, and returns the result of that XPath expression.
Parses the entire response text as JSON, evaluates an XPath expression for that XML, and returns the result of that XPath expression.
Parses the body of the HTTP response received as XML, evaluates an XPath expression for that XML, and returns the result of that XPath expression. If the " |
|
|
getMessage
Returns all or the specified portion of the message that is to be sent.
Returns the entire text of the message that is to be sent.
Returns the body of the HTTP message that is to be sent.
The current value of the (optional) HTTP headers to be sent with the message is returned. Can be null. A text string is returned with new-lines between the HTTP headers. |
||
setMessage MethodSets all or the specified portion of the message that is to be sent.
Sets the entire text of the message that is to be sent from the "
Sets the body of the HTTP message that is to be sent from the "
The " If the " |
|
|
endRepeatRequests that repeating for this Message be ended. If this Message is not currently playing, no action is taken. Note that this is not an “abort” – repeating will be ended after any current individual repeat play of this Message 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. |
|
|
getResourceLinksFromHTMLResponseThis method allows a Script to scan any HTML response for resource URLs. If the response to this Message is HTML, the HTML is parsed and any links on the HTML page to external resources are extracted and returned as an array of URLs. If there is no response, or the response is not HTML, null is returned. |
|
