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

Expecting rightparen before colon

New Here ,
Jun 05, 2013 Jun 05, 2013

I am making a turn based rpg game in actionscript 3 but I am a beginner and I am having some problems.

error 1084: expecting rightparen before colon.

Here is my code:

import flash.events.MouseEvent;

stop();

next.addEventListener(MouseEvent.CLICK, nextbutton)

function nextbutton(event:MouseEvent):void

{

          nextFrame()

          addChildAt(Fight:DisplayObject, frame:9);DisplayObject - DisplayObjectContainer

          stop();

}

TOPICS
ActionScript
415
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 ,
Jun 05, 2013 Jun 05, 2013
LATEST

THe problem is likely with the following line.  Look up the addChildAt method and see how to specify its arguments.  

addChildAt(Fight:DisplayObject, frame:9);DisplayObject - DisplayObjectContainer

Whatever that "DisplayObject - DisplayObjectContainer" is doing at the end, it doesn't belong there, or anywhere... it is not valid code.

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