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]