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

Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00005452.html