# Help with changing text color

**URL:** https://forum.kirupa.com/t/help-with-changing-text-color/181976
**Category:** flash
**Created:** [March 14, 2006, 5:55pm UTC](https://forum.kirupa.com/t/help-with-changing-text-color/181976 "2006-03-14T17:55:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JCampos021](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@JCampos021](https://forum.kirupa.com/u/JCampos021)
#### Post date: [March 14, 2006, 5:55pm UTC](https://forum.kirupa.com/t/help-with-changing-text-color/181976/1 "2006-03-14T17:55:02Z")

</div>

ok, so this is for a baseball leauge that i take part in. They wanted to do a live update thingy on there site. What i want to do is make it so that when the game status variable = final then the text color changes of the team that lost.

```auto
 
onClipEvent (enterFrame) { 
if(_root.game_status == "Final"){
     if(_root.home > _root.away ){
          format = new TextFormat(); 
          format.color = 0xFF3366;          
          hteam.setTextFormat(format);     
     }else{          
     format = new TextFormat();          
     format.color = 0xFF3366;          
     ateam.setTextFormat(format);          
     }     
     }
}

```

That is what i have so far for it, but i cant get it to fit all together and actually work. Hopefully i explained it well enough, sorry bout that. thanx for any help that you can give me…
