l have a yahoo audio player problem.

Within my Flash file l have four tabs that go to each page, in one tab l have the audio player. What l am hoping to do is when a user go's to the next tab to view a page in my flash file the audio automatic cuts off when they are in a new page.

What has been happening is when the user do's not stop the play button before they go to the next tab..ie page the audio is still playing.

l have used this:

audioPlayback_mc.visible=false;
audioPlayback_mc.stop();

however no luck in stopping the sound.

This is my code for the tabs below

var tabArray:Array = [tab1_mc,
tab2_mc,
tab3_mc,
tab4_mc];

for( i=0; i < tabArray.length; i++) {
tabArray[i].addEventListener(MouseEvent.CLICK, tabClick);
tabArray[i].addEventListener(MouseEvent.MOUSE_OVER, tabOver);
tabArray[i].addEventListener(MouseEvent.MOUSE_OUT, tabOut);
tabArray[i].buttonMode=true;
tabArray[i].frm = i;
};

function tabClick (event:MouseEvent) {
resetTabs ();
event.currentTarget.buttonMode=false;
event.currentTarget.gotoAndStop(2);
event.currentTarget.removeEventListener(MouseEvent .CLICK, tabClick);
event.currentTarget.removeEventListener(MouseEvent .MOUSE_OUT, tabOut);
event.currentTarget.removeEventListener(MouseEvent .MOUSE_OVER, tabOver);
gotoAndStop(event.currentTarget.frm+3);
};







function tabOver (event:MouseEvent) {
event.currentTarget.gotoAndStop(2);

};
function tabOut (event:MouseEvent) {
event.currentTarget.gotoAndStop(1);

};


function resetTabs () {
for( i=0; i < tabArray.length; i++) {
tabArray[i].addEventListener(MouseEvent.CLICK, tabClick);
tabArray[i].addEventListener(MouseEvent.MOUSE_OVER, tabOver);
tabArray[i].addEventListener(MouseEvent.MOUSE_OUT, tabOut);
tabArray[i].buttonMode=true;
tabArray[i].gotoAndStop(1);
};
};


Can anyone can help....