flash on 2010-2-28
@see ASCII文字コード : IT用語辞典 [http://e-words.jp/p/r-ascii.html]
♥0 |
Line 37 |
Modified 2010-02-28 19:50:58 |
MIT License
archived:2017-03-20 02:51:26
ActionScript3 source code
/**
* Copyright foo9 ( http://wonderfl.net/user/foo9 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/2Ejp
*/
package
{
import flash.display.Sprite;
import flash.text.TextField;
[SWF(backgroundColor="#cccccc", width="465", height="465")]
/**
* @see ASCII文字コード : IT用語辞典 [http://e-words.jp/p/r-ascii.html]
*/
public class FlashTest extends Sprite
{
public static const NUMBER:String = "0123456789"; //48 - 57
public static const ALPHABET_UPPER:String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //65 - 90
public static const ALPHABET_LOWER:String = "abcdefghijklmnopqrstuvwxyz"; //97 - 122
//public static const QUESTION_MARK:String = "?"; //63
//public static const DOLLER_SIGN:String = "$"; //36
public var tf:TextField;
public function FlashTest()
{
tf = new TextField();
tf.width = 465;
tf.height = 465;
tf.multiline = true;
addChild(tf);
var tmp:String = "";
for(var i:uint; i<NUMBER.length; i++)
{
//tmp += NUMBER.charAt(i) + " : " + NUMBER.charCodeAt(i) + "\n";
tmp += String.fromCharCode(NUMBER.charCodeAt(i)) + " : " + NUMBER.charCodeAt(i) + "\n";
}
tmp += "==============================================\n"
for(var j:uint; j<ALPHABET_UPPER.length; j++)
{
//tmp += ALPHABET_UPPER.charAt(j) + " : " + ALPHABET_UPPER.charCodeAt(j) + "\n";
tmp += String.fromCharCode(ALPHABET_UPPER.charCodeAt(j)) + " : " + ALPHABET_UPPER.charCodeAt(j) + "\n";
}
tmp += "==============================================\n"
for(var k:uint; k<ALPHABET_LOWER.length; k++)
{
//tmp += ALPHABET_LOWER.charAt(k) + " : " + ALPHABET_LOWER.charCodeAt(k) + "\n";
tmp += String.fromCharCode(ALPHABET_LOWER.charCodeAt(k)) + " : " + ALPHABET_LOWER.charCodeAt(k) + "\n";
}
tf.text = tmp;
}
}
}