Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > String > 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.
Availability: ActionScript 1.0; Flash Player 5
value:Object - value1[,...valueN] Zero or more values to be concatenated.
String - A string.
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
Flash CS3