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