String.fromCharCode()
411
Example
In the following example, this method is called on the first letter of the string
"Chris"
:
var my_str:String = "Chris";
var firstChar_num:Number = my_str.charCodeAt(0);
trace(firstChar_num); // output: 67
See also
String.charAt()
String.concat()
Availability
Flash Player 5.
Usage
my_str
.concat(
value1,...valueN
)
: String
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.
Example
The following example creates two strings and combines them using
String.concat()
:
var stringA:String = "Hello";
var stringB:String = "World";
var combinedAB:String = stringA.concat(" ", stringB);
trace(combinedAB); // output: Hello World
String.fromCharCode()
Availability
Flash Player 5.
Usage
String.fromCharCode(
c1:Number,c2,...cN
)
: String
Parameters
c1,c2,...cN
A number; decimal integers that represent ASCII values.
Returns
A string.
Summary of Contents for FLEX
Page 1: ...Flex ActionScript Language Reference ...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0 ...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally ...
Page 135: ...case 135 See also break default strict equality switch ...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while ...
Page 808: ...808 Chapter 7 ActionScript for Flash ...
Page 810: ...810 Appendix A Deprecated Flash 4 operators ...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code ...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values ...
Page 822: ...822 Index ...