Argument error 2109 when buttons are clicked

Hello,

I’m still a newbie when it comes as3.

I am working on a website and I have my buttons within a MC and they are revealed when you rollover the MC.
All buttons are independent buttons from my library and they each have unique instance names. These very instance names for the buttons match frame labels that I have in the first scene/main timeline.

Here is the argument error that I receive when I click on one of my four buttons:

ArgumentError: Error #2109: Frame label instance7 not found in scene Scene 1.
at flash.display::MovieClip/gotoAndPlay()
at secondsdwebsite2_fla::MainTimeline/btnClick()

Here is the only code I have (the rest are “stop();” scripts in the places need):


stop();

main_btn.addEventListener(MouseEvent.MOUSE_OVER, slidein);
main_btn.addEventListener(MouseEvent.MOUSE_OUT, slideout);

function slidein(event:MouseEvent):void
{
buttons.play();
}

function slideout(event:MouseEvent):void
{
buttons.stop();
}

buttons.addEventListener(MouseEvent.CLICK, btnClick);
var btnName = “”;
function btnClick(event:MouseEvent):void
{
btnName = event.target.name;
gotoAndPlay(btnName);
}

/*
works_btn.buttonMode=true;
about_btn.buttonMode=true;
contact_btn.buttonMode=true;
resume_btn.buttonMode=true;
works_btn.useHandCursor=true;
about_btn.useHandCursor=true;
contact_btn.useHandCursor=true;
resume_btn.useHandCursor=true;
*/


Please tell me what I’m doing wrong. Better yet, how can I fix it?