SWiSH Player Support
SWF5 or later - Supported Internally
Syntax
myString.trim()
Arguments
none
Returns
The specified string with any whitespace removed from the end of the string.
Description
Method: Returns the specified string with all whitespace (blank spaces) removed from the end (right side) of the string.
Sample
onLoad () {
str = " Hello World ";
trace(str.trimRight()); // returns " Hello World"
}