String.fromcharcode() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

String.fromCharCode()

Availability
Flash Player 5.
Usage
String.fromCharCode(c1:Number,c2,...cN) : String
Parameters
c1,c2,...cN
Returns
A string.
Description
Method; returns a string comprising the characters represented by the ASCII values in
the parameters.
Example
The following example uses
var address_str:String = "dog"+String.fromCharCode(64)+"house.net";
trace(address_str); // output: dog@house.net
798
Chapter 2:
A number; decimal integers that represent ASCII values.
fromCharCode()
to insert an
character in the e-mail address:
@

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents