EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 652

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
652 Chapter 12: ActionScript Dictionary
String.concat()
Availability
Flash Player 5.
Usage
my_str.concat(value1,...valueN)
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.
String.fromCharCode()
Availability
Flash Player 5.
Usage
String.fromCharCode(c1,c2,...cN)
Parameters
c1,c2,...cN
Decimal integers that represent ASCII values.
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 fromCharCode() to insert an @ character in the e-mail address.
address_str = "dog" + String.fromCharCode(64) + "house.net";
trace(address_str); // dog@house.net

Table of Contents

Related product manuals