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.
Содержание FLEX-FLEX ACTIONSCRIPT LANGUAGE
Страница 1: ...Flex ActionScript Language Reference...
Страница 8: ......
Страница 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Страница 76: ......
Страница 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Страница 135: ...case 135 See also break default strict equality switch...
Страница 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Страница 229: ...while 229 i 3 The following result is written to the log file 0 3 6 9 12 15 18 See also do while continue for for in...
Страница 808: ...808 Chapter 7 ActionScript for Flash...
Страница 810: ...810 Appendix A Deprecated Flash 4 operators...
Страница 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Страница 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Страница 822: ...822 Index...