- package
- {
- import flash.filters.GlowFilter;
- import mx.controls.Button;
- public class MyButton extends Button
- {
- public function MyButton()
- {
- super();
- }
- override protected function commitProperties():void
- {
- super.commitProperties();
- var glow:GlowFilter = new GlowFilter(0x000000,1,2,2,255,1,false);
- var arr:Array = new Array();
- arr.push(glow);
- this.textField.filters = arr;
- }
- }
- }