forked from: HelloWorld with GlowFilter

by kenta forked from HelloWorld with GlowFilter (diff: 1)
HelloWorld こんにちは
♥0 | Line 24 | Modified 2009-09-25 00:22:56 | MIT License
play

ActionScript3 source code

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

// forked from nilab's HelloWorld with GlowFilter
// forked from nilab's HelloWorld on 2009-3-17
package {
  import flash.display.*;  
  import flash.text.*;
  import flash.filters.GlowFilter;
 
  [SWF(backgroundColor="#000000", frameRate=30)]

  //HelloWorld こんにちは
  public class HelloWorld extends Sprite {
    public function HelloWorld() {
      var textFormat:TextFormat = new TextFormat();
      textFormat.color = 0x00FF00;
      textFormat.size = 48;
      textFormat.underline = false;
      textFormat.font = "_等幅";
      var textField:TextField = new TextField();
      textField.text = "hello, world\nこんにちは、世界♪";
      textField.autoSize = TextFieldAutoSize.LEFT;
      textField.setTextFormat(textFormat);
      addChild(textField);
      
      var filterList:Array = new Array();
      var glowFilter:GlowFilter = new GlowFilter(0xFFFFFF, 1, 16, 16, 2, 1, false, false);
      filterList.push(glowFilter);
      this.filters = filterList;
    }
  }
}