Syntax Error 1084
Copy link to clipboard
Copied
ICan someone help, please? I'm having trouble with ActionScript 3.0, and I keep getting an error:
1084:syntax error: expecting rightparen before colon
And this is the script:
home_button.addEventListener(MouseEvent.CLICK, takeHome);
function takeHome(evt:MouseEvent){
gotoAndStop(1)
}
flash_button.addEventListener(event:MouseEvent)void:)
{
nextFrame(2);
}
clients_button.addEventListener(event:MouseEvent)void:
{
nextFrame(3);
}
If anyone can see anything wrong with this, I'd be more than grateful.
Copy link to clipboard
Copied
There are a number of errors. The following lines are correctly written... so based the rest of the code you show on their example...
home_button.addEventListener(MouseEvent.CLICK, takeHome);
function takeHome(evt:MouseEvent):void {
gotoAndStop(1);
}
Also, nextFrame() does not accept a numeric argument... it only goes to the next frame in case you are trying to go more than that.

