flash on 2010-1-19

by Tamanegi_kenshi
♥0 | Line 26 | Modified 2010-01-19 17:31:40 | MIT License
play

ActionScript3 source code

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

package {
	import flash.text.TextField;
	import flash.text.TextFormat;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            
        var sugato:TextField;
        sugato = new TextField();
        
        sugato.background = true;
        sugato.backgroundColor = 0xffff00;
        sugato.x =100;
        sugato.y= 100;
       sugato.width=100;
       sugato.height = 100; 
      
       
       var test:TextFormat = new TextFormat();
       test.align ="center"
       test.bold = true
       test.color = 0xff0000;
       test.font="_ゴシック";
       test.size = 50;
       
       
       sugato.defaultTextFormat = test;
       sugato.text = "検索";
       addChild(sugato);
       
        
        
            
        }
    }
}