Forked from: nilab's HelloWorld with GlowFilter diff:1 forked from: HelloWorld with GlowFilter HelloWorld こんにちは kenta forked:0favorite:0lines:24license : MIT License modified : 2009-09-25 00:22:56 Embed Tweet // 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; } } } Code Fullscreen Preview Fullscreen underline GlowFilter setTextFormat text filters TextFormat font TextFieldAutoSize.LEFT autoSize size color TextField push addChild Array Sprite