As ord(character) is somehow a privilege of Flash Light and AS1 here's a small AS3 workaround to get the ASCII code number of a specific character.
Actionscript:
-
var charCarry:String = "C";
-
var asciiConvert:int = charCarry.charCodeAt(0);
-
trace(asciiConvert); // 67
You can look up the complete ASCII code table here.



April 21st, 2010
Marvin Blase
Posted in
Tags: