User Guide

String.concat() 797
String.concat()
Availability
Flash Player 5.
Usage
my_str.concat(value1,...valueN) : String
Parameters
value1,...valueN
Zero or more values to be concatenated.
Returns
A string.
Description
Method; combines the value of the String object with the parameters and returns the newly
formed string; the original value,
my_str, is unchanged.
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