自分用TextField練習

by Nowloading_
♥0 | Line 17 | Modified 2011-03-25 02:19:34 | MIT License
play

ActionScript3 source code

/**
 * Copyright Nowloading_ ( http://wonderfl.net/user/Nowloading_ )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/3PoA
 */

//自分用のテキスト練習
//フォーマットで文字を大きくすると
//文字の上部が消えてしまう現象を確認
//その解決策を探すのが目的
package {
    import flash.text.TextFormat;
    import flash.display.Sprite;
    import flash.text.TextField;
    public class FlashTest extends Sprite{
        public function FlashTest() {
            var tf:TextField = new TextField();
            tf.text = "123456789/123456789/";
            tf.backgroundColor = 0xff9999;
            tf.background = true;
            addChild(tf);
            tf.width = 100;
            tf.height = 70;
            
            var Format:TextFormat = new TextFormat();
            
        }
    }
}