Problems linking buttons to timeline

Hi,

I’m new to Flash so i’m trying to get my head round AS3. I’m building a new website but have encountered some errors already!!!

I’m just trying to create basic navigation for my site. 3 buttons which link to flags in the timeline:

[LIST]
[*]Home
[/LIST]

[LIST]
[*]Resources
[/LIST]

[LIST]
[*]Production
[/LIST]
But when I publish this error appears:

ArgumentError: Error #1063: Argument count mismatch on mysite_fla::MainTimeline/resClick(). Expected 2, got 1.

here’s the code:

stop()
import flash.events.MouseEvent

//button timeline

home_Btn.addEventListener(MouseEvent.CLICK,homeClick);
res_Btn.addEventListener(MouseEvent.CLICK,resClick);
pro_Btn.addEventListener(MouseEvent.CLICK,proClick);

function homeClick(Event,MouseEvent):void
{
gotoAndStop(“Home”);
}
function resClick(Event,MouseEvent):void
{
gotoAndStop(“Resources”);
}
function proClick(Event,MouseEvent):void
{
gotoAndStop(“Production”);
}

Appreciate any help offered,

Thanks,
limeman

Thanks Mattrock, that helped. I have no errors now.

However, the nav buttons only work once. For example I click on the “resources” button which displays the “resources” content which is great, but when I click on any of the other buttons it stays in the “resources” content.

Here’s the updated code:

**stop()

home_Btn.addEventListener(MouseEvent.CLICK, goHome);
res_Btn.addEventListener(MouseEvent.CLICK, goResource);
pro_Btn.addEventListener(MouseEvent.CLICK, goProd);

function goHome (e:MouseEvent):void
{
gotoAndStop(“Home”);
}
function goResource (e:MouseEvent):void
{
gotoAndStop(“Resources”);
}
function goProd (e:MouseEvent):void
{
gotoAndStop(“Production”);
}**

if anyone one could help I would be very grateful.

Thanks,
L