onComplete Not Working

Initially when I started coding the AS/PHP/XML mp3 player, the onComplete has never worked.
Some one suggested it might be the list click that is stopping it from working? But all the code is fine and works fine until end of mp3 and just sits there lol.
[AS]
function onPlaybackComplete(event:Event) {
TweenMax.killAll(false, true, false);
songInfo.scrollingText.x = 0;
pos = 0;
if (trackNumber < tracksInDirectory) {
channel.stop();
trackNumber += 1;
snd = new Sound(new URLRequest(dir+trackNumber+".mp3"));
channel = snd.play();
} else {
channel.stop();
trackNumber = 1;
snd = new Sound(new URLRequest(dir+trackNumber+".mp3"));
channel = snd.play();
}
var currentTrackPlaying = new Array(trackNumber-1,trackNumber-1);
list.selectedIndices = currentTrackPlaying;
list.scrollToIndex(trackNumber-1);
var tick:String = list.getItemAt(trackNumber-1).label;
wide = tick.length * size;
songInfo.scrollingText.tf.width = wide;
songInfo.scrollingText.width = wide;
songInfo.scrollingText.tf.text = tick;
TweenMax.to(songInfo.scrollingText, speed, {x:-(wide+150), y:0, ease: Linear.easeNone, repeat:-1});
}
[/AS]
Any help would be appreciated.

Thanks
Steven :genius: