This content has been marked as final.
Show 3 replies
-
1. Re: errors concerning braces that aren't actually there
BorosAdam Mar 14, 2007 7:20 AM (in response to muffinboyo)can you post the error message?
adam -
2. Re: errors concerning braces that aren't actually there
muffinboyo Mar 15, 2007 3:51 AM (in response to muffinboyo)These are the 4 error messages that appeared:-
**Error** Scene=Scene 1, layer=Background, frame=23:Line 5: Unexpected '}' encountered
}
**Error** Scene=Scene 1, layer=Guy, frame=78:Line 2: Statement block must be terminated by '}'
{
**Error** Scene=Scene 1, layer=Guy, frame=78:Line 5: Syntax error.
}
**Error** Scene=Scene 1, layer=Background, frame=80:Line 5: Unexpected '}' encountered
}
Total ActionScript Errors: 4 Reported Errors: 4
This is the code the frames concerned:-
Frame 23
stop();
{ /*This adds up and displays the total score*/
_root.hittingtotal= hitting1 + hitting2 + hitting3 + hitting4;
_root.showhittingtotal = hittingtotal;
}
function gameovertomenu(){ /*This function goes the main menu if the menu button is pressed*/
if(_root.bkmenu1.hitTest(_root._xmouse,_root._ymouse,true))
{
gotoAndStop(1);
}
}
Frame 78
stop();
function gameovertomenu2() /*This function goes the main menu
if the menu button is pressed*/
{
if(_root.bkmenu2.hitTest(_root._xmouse,_root._ymouse,true))
{
gotoAndStop(1);
}
}
Frame 80
stop();
{ /*This adds up and displays the
total score*/
_root.hittingtotal= hitting1 + hitting2 + hitting3 + hitting4 + 100;
_root.showhittingtotal = hittingtotal;
}
function gameovertomenu4(){ /*This function goes the main menu if the menu button is pressed*/
if(_root.bkmenu4.hitTest(_root._xmouse,_root._ymouse,true))
{
gotoAndStop(1);
}
}
Thanks a lot! -
3. Re: errors concerning braces that aren't actually there
muffinboyo Mar 15, 2007 6:58 AM (in response to muffinboyo)I have just discovered that even if all the code is removed from the above frames the same error messages are still displayed...