String.concat(string)
Top  Previous  Next


SWiSH Player Support
SWF5 or later - Supported Internally

Syntax
myString.concat(value1,...valueN)

Arguments
value1,...valueN: Zero or more values to be concatenated.

Returns
Concatenated string. Original string is unchanged.

Description
Method: Combines the value of the String Object with the Arguments and returns the newly formed string; the original value, myString, is unchanged.

Sample
onLoad () {
    str = "test2";
    trace(str.concat("hi","this", 4 > 3, "more"));  // returns "test2hithis1more"
    trace (str);  // returns "test2"
}