# Problem: color change playlist item

**URL:** <https://forum.kirupa.com/t/problem-color-change-playlist-item/305223>\
**Category:** Uncategorized\
**Created:** [February 21, 2010, 9:19pm UTC](https://forum.kirupa.com/t/problem-color-change-playlist-item/305223 "2010-02-21T21:19:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rockomole](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rockomole](https://forum.kirupa.com/u/rockomole)\
**Post date:** [February 21, 2010, 9:19pm UTC](https://forum.kirupa.com/t/problem-color-change-playlist-item/305223/1 "2010-02-21T21:19:34Z")

</div>

ive got most of my playlist set. it consists of dynamic text boxes which read id3 songNames. ive got the playlist items to be inactive when the corresponding song is playing, but i’d also like the text color to change (which isn’t responding).  
[LEFT]  
on the stage, the playlist items are built like this: dynamic text box _songTitle_, inside movie clip _song#btn,_ inside movie clip _playlistMC_. The text below in bold is whats not responding. and for some reason when i change _song6btn_ to _song1btn_, the text color does change for song1 when song6 is playing.

heres the code:

**var inactive:TextFormat = new TextFormat();  
inactive.color = 0xFF0000;**

// song6 //  
var req6:URLRequest = new URLRequest(“FILES/Song6.mp3”);  
var snd6:Sound = new Sound();  
snd6.load(req6);

snd6.addEventListener(Event.ID3, songName6);  
function songName6 (event:Event):void {

```
// buttonmode //
if(trackPlayNum == 6){
    playlistMc.song6btn.buttonMode=false;
    playlistMc.song6btn.mouseChildren=true;**
    playlistMc.song6btn.songTitle.setTextFormat(inactive);**
    } else {
        playlistMc.song6btn.buttonMode=true;
        playlistMc.song6btn.mouseChildren=false;
}

// title //
playlistMc.song6btn.songTitle.autoSize = TextFieldAutoSize.LEFT
var songName:String;
if (snd6.id3.songName != null){
    songName = snd6.id3.songName;
} else {
    songName = "Title Unknown";
}
playlistMc.song6btn.songTitle.text = songName;

```

}[/LEFT]
