# Apply Text Filter Dynamically

**URL:** https://forum.kirupa.com/t/apply-text-filter-dynamically/212245
**Category:** flash
**Created:** [January 9, 2007, 4:39pm UTC](https://forum.kirupa.com/t/apply-text-filter-dynamically/212245 "2007-01-09T16:39:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![duncanhall](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@duncanhall](https://forum.kirupa.com/u/duncanhall)
#### Post date: [January 9, 2007, 4:39pm UTC](https://forum.kirupa.com/t/apply-text-filter-dynamically/212245/1 "2007-01-09T16:39:48Z")

</div>

How can I add a glow filter to a textfield via actionscript? I know the procedure for doing the same thing with a movieclip, but the TextField class (and TextFormat) don’t seem to accept filters as a property?

What I have so far:

[AS]  
import flash.filters.\*;

var text\_glow:GlowFilter = new GlowFilter(0xFF0000, 80, 10, 10, 100, 3, false, false);

var some\_txt:TextField;

//Want to apply filter to text field  
[/AS]
