Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Syntax Error 1084

New Here ,
Apr 22, 2015 Apr 22, 2015

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.

TOPICS
ActionScript
974
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 23, 2015 Apr 23, 2015
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines