Flash Lite 2.x and 3.0 ActionScript Language Reference

concat (String.concat method)

public concat(value:Object) : String

Combines the value of the String object with the parameters and returns the newly formed string; the original value, my_str, is unchanged.

Parameters

value:Object - value1[,...valueN] Zero or more values to be concatenated.

Returns

String - A string.

Example

The following example creates two strings and combines them using String.concat():

var stringA:String = "Hello";
var stringB:String = "World";
var combinedAB:String = stringA.concat(" ", stringB);
trace(combinedAB); // output: Hello World