Does anybody know of a utility or program or app that finds the ASCII code of a typed or inputed word, phrase, sentence? I need it to be usable online??? Usable in Flash also? thanks!
Professional Software Development Tools
Does anybody know of a utility or program or app that finds the ASCII code of a typed or inputed word, phrase, sentence? I need it to be usable online??? Usable in Flash also? thanks!
Is this what you are asking for or am I misunderstanding?
http://www.vortex.prodigynet.co.uk/misc/ascii_conv.html
I dont think it would work within flash. I need something that can work in flash and export the ASCII as a var within flash. Thanks though. Nice link.
Doesn't Flash 8 run Javascript? Anyhow I'm sure this can be done in actionscript, I'll take a boo.![]()
How's this?
Credit goes to someone named "Pixelwit" who posted this code to the actionscript.org forum...Code:function stringToAscii (someString){ var arry = someString.split(""); for(var i in arry){ arry[i] = arry[i].charCodeAt(0); } return arry; } function asciiToString (asciiArray){ var str = ""; var len = asciiArray.length; for(var i=0; i<len; i++){ str += String.fromCharCode(asciiArray[i]); } return str; } var myString = "Sample"; var myAsciiArray = stringToAscii(myString); trace(myAsciiArray); var myAsciiToString = asciiToString(myAsciiArray); trace(myAsciiToString);
![]()
Darn close to what i am looking for. I think I will use this. thanks!
Eggsellent.![]()