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

Scene 1, Layer 'actions', Frame 1, Line 1084: Syntax error: expecting identifier before plusassign.

New Here ,
Sep 18, 2013 Sep 18, 2013

    butt.addEventListener (MouseEvent.MOUSE_UP, makeMC);     var mc1:MovieClip = new MYMC();     function makeMC (event:MouseEvent):void {      if (clipAdded) {  // same as if (clipAdded == true) removeChildAt(numChildren - 1);  // last one added }     addChild (mc1);   clipAdded = true; mc1.x = += 100; mc1.y = 300; mc1.play(); clipAdded = true; } removeChildAt(numChildren - 1); }   }     var clipAdded:Boolean = false;     /*function Child (mc1){ clipAdded = true; }*/

TOPICS
ActionScript
538
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

correct answers 1 Correct answer

LEGEND , Sep 18, 2013 Sep 18, 2013

Your posted code is a mess... in any case, within it the following might be where the problem lies...

mc1.x = += 100;

it's either =  or +=  but it cannot be both

Translate
LEGEND ,
Sep 18, 2013 Sep 18, 2013
LATEST

Your posted code is a mess... in any case, within it the following might be where the problem lies...

mc1.x = += 100;

it's either =  or +=  but it cannot be both

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