See also
charAt (String.charAt method)
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,
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- value1[,...valueN] Zero or more values to be concatenated.
value:Object
Returns
- A string.
String
Example
The following example creates two strings and combines them using
var stringA:String = "Hello";
var stringB:String = "World";
var combinedAB:String = stringA.concat(" ", stringB);
trace(combinedAB); // output: Hello World
fromCharCode (String.fromCharCode method)
public static fromCharCode() : String
Returns a string comprising the characters represented by the Unicode values in the
parameters.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
- A string value of the specified Unicode character codes.
String
Example
The following example uses
var address_str:String = "dog"+String.fromCharCode(64)+"house.net";
trace(address_str); // output: dog@house.net
630
ActionScript classes
, is unchanged.
my_str
fromCharCode()
to insert an
character in the e-mail address:
@
:
String.concat()