Skip to main content
Known Participant
September 18, 2013
Answered

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

  • September 18, 2013
  • 1 reply
  • 573 views

    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; }*/

This topic has been closed for replies.
Correct answer Ned Murphy

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

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
September 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