flash on 2012-12-28

by asou_jp
♥0 | Line 16 | Modified 2012-12-28 17:12:59 | MIT License
play

ActionScript3 source code

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

package {
    import flash.text.TextFormatAlign;
    import flash.text.TextFormat;
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            
            var textField:TextField = new TextField();
            textField.width = 465;
            textField.height = 100;
            textField.defaultTextFormat = new TextFormat("_sans", 16, 0, null, null, null, null, null, TextFormatAlign.JUSTIFY);
            textField.text = 'ジャスティファイ';
            addChild(textField);
        }
    }
}