Skip to main content
emmanuela19023762
Participant
April 23, 2015
Question

Syntax Error 1084

  • April 23, 2015
  • 1 reply
  • 984 views

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.

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
April 23, 2015

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.