Name
String.fromCharCode( ) Class Method — generate a string from one or more code points
Availability
Flash 5
Synopsis
String.fromCharCode(code_ point1, code_ point2,...code_ pointn)
Arguments
- code_ point1,...code_ point
n
A series of one or more decimal integers corresponding to Latin 1 or Shift-JIS character code points, as shown in Appendix B.
Returns
A string formed by concatenating the characters represented by the specified code points.
Description
The fromCharCode( )
class method produces a
character or series of characters from character code points as
described in Chapter 4.
Example
// Makes a copyright symbol, followed by the year (2001) copyNotice = String.fromCharCode(169) + " 2001";
See Also
String.charCodeAt( )
; Appendix B, Section 4.6.9.1 in
Chapter 4
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.