Controlling multiple videos playback

Hi everybody,

I’m currently working on a project which includes 7 small 30 second videos inside a mask with no skins. The vids are inside a graphic symbol along with some other animation going on at the same time.

The problem is that I can play and stop the vids just fine but when I use the rewind or forward buttons to go to next video or previous video all hell breaks loose. Both videos end up playing at the same time. Very annoying.

Should I be using movieclips instead or is it something else that I’m missing.

Any help would be appreciated,

thanks

Here’s a look at the code:

var timer:Timer = new Timer(6000,1);
navbar.visible = false

navbar.next_btn.addEventListener(MouseEvent.CLICK, nextButtonClick);
navbar.prev_btn.addEventListener(MouseEvent.CLICK, previousButtonClick);
navbar.play_btn.addEventListener (MouseEvent.CLICK, playButtonClick);
navbar.pause_btn.addEventListener(MouseEvent.CLICK, stopButtonClick);
navbar.menu_btn.addEventListener(MouseEvent.CLICK, menuButtonClick);

timer.addEventListener(TimerEvent.TIMER_COMPLETE, hidemenu);
stage.addEventListener(MouseEvent.MOUSE_MOVE, showmenu);

function hidemenu(e:TimerEvent):void{
navbar.visible = false;
}
function showmenu(e:MouseEvent):void{
navbar.visible = true;
timer.start();
}

function stopButtonClick(e:MouseEvent):void
{

if(VidDesign_1)

{
VidDesign_1.stop();
}

else if (VidDesign_2)

{
VidDesign_2.stop();
}

else if (VidDesign_3)

{
VidDesign_3.stop();
}

 else if (VidDesign_4)

{
VidDesign_4.stop();
}

 else if (VidDesign_5)

{
VidDesign_5.stop();
}

 else if (VidDesign_6)

{
VidDesign_6.stop();
}

 else if (VidDesign_7)

{
VidDesign_7.stop();
}

stop();

}

function playButtonClick(e:MouseEvent):void
{
if(VidDesign_1)
{
VidDesign_1.play();
}

else if (VidDesign_2)

{
VidDesign_2.play();
}

else if (VidDesign_3)

{
VidDesign_3.play();
}

else if (VidDesign_4)

{
VidDesign_4.play();
}

else if (VidDesign_5)

{
VidDesign_5.play();
}

else if (VidDesign_6)

{
VidDesign_6.play();
}

else if (VidDesign_7)

{
VidDesign_7.play();
}

play();

}

function previousButtonClick(e:MouseEvent):void
{

if(VidDesign_1)

{
VidDesign_1.stop();
}

else if (VidDesign_2)

{
VidDesign_2.stop();
}

else if (VidDesign_3)

{
VidDesign_3.stop();
}

 else if (VidDesign_4)

{
VidDesign_4.stop();
}

 else if (VidDesign_5)

{
VidDesign_5.stop();
}

 else if (VidDesign_6)

{
VidDesign_6.stop();
}

 else if (VidDesign_7)

{
VidDesign_7.stop();
}

gotoAndStop(currentFrame - 300);

}

function nextButtonClick(e:MouseEvent):void
{

if(VidDesign_1)

{
VidDesign_1.stop();
}

else if (VidDesign_2)

{
VidDesign_2.stop();
}

else if (VidDesign_3)

{
VidDesign_3.stop();
}

 else if (VidDesign_4)

{
VidDesign_4.stop();
}

 else if (VidDesign_5)

{
VidDesign_5.stop();
}

 else if (VidDesign_6)

{
VidDesign_6.stop();
}

 else if (VidDesign_7)

{
VidDesign_7.stop();
}

gotoAndStop(currentFrame + 300);	

}

function menuButtonClick(e:MouseEvent):void
{

if(VidDesign_1)

{
VidDesign_1.stop();
}

else if (VidDesign_2)

{
VidDesign_2.stop();
}

else if (VidDesign_3)

{
VidDesign_3.stop();
}

 else if (VidDesign_4)

{
VidDesign_4.stop();
}

 else if (VidDesign_5)

{
VidDesign_5.stop();
}

 else if (VidDesign_6)

{
VidDesign_6.stop();
}

 else if (VidDesign_7)

{
VidDesign_7.stop();
}

gotoAndPlay(1);

}