# TextFormat class in AS3

**URL:** <https://forum.kirupa.com/t/textformat-class-in-as3/297862>\
**Category:** flash\
**Created:** [October 9, 2009, 10:54am UTC](https://forum.kirupa.com/t/textformat-class-in-as3/297862 "2009-10-09T10:54:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdat](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jdat](https://forum.kirupa.com/u/jdat)\
**Post date:** [October 9, 2009, 10:54am UTC](https://forum.kirupa.com/t/textformat-class-in-as3/297862/1 "2009-10-09T10:54:31Z")

</div>

Hi,  
I am still learning the ropes with AS3. I have a navigation bar that changes the colour of the text when you rollover it, at the moment I get an inner glow to the text. I would like to amend the following code so that I don’t get a glow around the text when I roll over it, I would just like a solid colour with no glow.

I found this code and I have tried it in my site and it does indeed have the glow around the text. What would I need to amend in the code below to remove the glow and have a solid colour for the text? I think the TextFormat class may need to be used but I am unsure how to use it within my code below:

[FONT=Courier New]var navBtnGlow:GlowFilter = new GlowFilter(0xFF3198, 1, 1, 15, 1, 2, true, false);[/FONT]

[FONT=Courier New]navBar\_mc.addEventListener(MouseEvent.MOUSE\_OVER, navOverF);[/FONT]  
[FONT=Courier New]navBar\_mc.addEventListener(MouseEvent.MOUSE\_OUT, navOutF); [/FONT]

[FONT=Courier New]function navOverF (event:MouseEvent):void[/FONT]  
[FONT=Courier New]{ [/FONT]  
[FONT=Courier New]event.target.filters = [navBtnGlow]; [/FONT]

[FONT=Courier New]navBar\_mc.setChildIndex(event.target as MovieClip, 1); [/FONT]  
[FONT=Courier New]dropMenus\_mc.gotoAndStop(navBar\_mc.getChildAt(1).name);[/FONT]  
[FONT=Courier New]}[/FONT]

[FONT=Courier New]function navOutF (event:MouseEvent):void[/FONT]  
[FONT=Courier New]{ [/FONT]  
[FONT=Courier New]event.target.filters = [];[/FONT]  
[FONT=Courier New]}[/FONT]

Any help you can provide is greatly appreciated.  
Many thanks  
Jdat.
