# \[AS3.0\] apply filter to TextField programmatically

**URL:** <https://forum.kirupa.com/t/as3-0-apply-filter-to-textfield-programmatically/221120>\
**Category:** flash\
**Created:** [April 1, 2007, 5:45pm UTC](https://forum.kirupa.com/t/as3-0-apply-filter-to-textfield-programmatically/221120 "2007-04-01T17:45:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![watcher](https://avatars.discourse-cdn.com/v4/letter/w/77aa72/32.png) [@watcher](https://forum.kirupa.com/u/watcher)\
**Post date:** [April 1, 2007, 5:45pm UTC](https://forum.kirupa.com/t/as3-0-apply-filter-to-textfield-programmatically/221120/1 "2007-04-01T17:45:55Z")

</div>

Hi there!

I tried this using

```auto
textField.filters = [new GlowFilter()]

```

or just like in Flash8 passing the .filters array ref to another array and pushing filter to that array [was it?], but none of these steps worked.

Applying filter to Sprite, within which the TextField (\_title) is contained:

```auto

var tit:Sprite = new Sprite();
     tit.addChild(_title);
     tit.filters = [new GlowFilter(0xFFFFFF,1,5,5,2,2)]
     addChild(tit);

```

worked, however this method (using extra sprite for a textfield) is just too dirty, let alone we want to apply filters to multiple textfields…

Anyone knows how to apply filter directly to TextField instance in AS3.0?

Thanks!
