String.trimLeft()
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Supported Internally

Syntax
myString.trimLeft()

Arguments
none

Returns
The specified string with any whitespace removed from the beginning of the string.

Description
Method: Returns the specified string with all whitespace (blank spaces) removed from the beginning (left side) of the string.

Sample
onLoad () {
    str = "   Hello World   ";
    trace(str.trimLeft()); // returns "Hello World   "
}