mardi 24 janvier 2017

Odd 1084: Syntax error: expecting rightbrace before end of program

I need a help. It is about rightbrace. Seems there is a problem. I don't know where is the mistake as previous code does not have a problem, but then latter there is a problem. With 1084: Syntax error: expecting rightbrace before end of program.

if (counterEnergy == 1){
                energyFlame1.gotoAndStop(1)
                energyFlame2.gotoAndStop(2)
                energyFlame3.gotoAndStop(2)
                energyFlame4.gotoAndStop(2)
                energyFlame5.gotoAndStop(2)
            }
            else if (counterEnergy == 2){
                energyFlame1.gotoAndStop(1)
                energyFlame2.gotoAndStop(1)
                energyFlame3.gotoAndStop(2)
                energyFlame4.gotoAndStop(2)
                energyFlame5.gotoAndStop(2)
            }
            else if (counterEnergy == 3){
                energyFlame1.gotoAndStop(1)
                energyFlame2.gotoAndStop(1)
                energyFlame3.gotoAndStop(1)
                energyFlame4.gotoAndStop(2)
                energyFlame5.gotoAndStop(2)
            }
            else if (counterEnergy == 4){
                energyFlame1.gotoAndStop(1)
                energyFlame2.gotoAndStop(1)
                energyFlame3.gotoAndStop(1)
                energyFlame4.gotoAndStop(1)
                energyFlame5.gotoAndStop(2)
            }
            else if (counterEnergy == 5){
                energyFlame1.gotoAndStop(1)
                energyFlame2.gotoAndStop(1)
                energyFlame3.gotoAndStop(1)
                energyFlame4.gotoAndStop(1)
                energyFlame5.gotoAndStop(1)
            }
            else if (counterEnergy == 0){
                energyFlame1.gotoAndStop(2)
                energyFlame2.gotoAndStop(2)
                energyFlame3.gotoAndStop(2)
                energyFlame4.gotoAndStop(2)
                energyFlame5.gotoAndStop(2)
            }

Aucun commentaire:

Enregistrer un commentaire