String.concat()
Availability
Flash Player 5.
Usage
my_str.concat(value1,...valueN)
Parameters
value1,...valueN
Returns
A string.
Description
Method; combines the value of the String object with the parameters and returns the newly
formed string; the original value,
String.fromCharCode()
Availability
Flash Player 5.
Usage
String.fromCharCode(c1,c2,...cN)
Parameters
c1,c2,...cN
Returns
A string.
Description
Method; returns a string made up of the characters represented by the ASCII values in
the parameters.
Example
This example uses
address_str = "dog" + String.fromCharCode(64) + "house.net";
trace(address_str); // dog@house.net
652
Chapter 12: ActionScript Dictionary
Zero or more values to be concatenated.
my_str
Decimal integers that represent ASCII values.
to insert an
fromCharCode()
, is unchanged.
character in the e-mail address.
@
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers