Thank you, Nig 13! The code worked a lot better than I thought it would, as copy-pasting code, at least for me, always ends up with several compiler errors.
Well, then, I have some other things that aren't working. The function displayScore() tells the dynamic text field "score_display" to display six 0's, not just one, that resemble retro game scores. Here is the displayScore() code:
Actionscript Code:
function displayScore()
{
var extraDigits = 6 - gScore.toString().length;
var display = "";
for (var digit = 1; digit <= extraDigits; ++loc1)
{
display = display + "0";
} // end of for
display = display + gScore.toString();
score_display.text = display;
} // Function ended
And here is the code you gave me with an added scoring function.
Actionscript Code:
function btnClick(btn, mc){
btn.onRelease = function(){
mc.gotoAndStop("neutral");
gScore = gScore + 250;
};
} // Function ended
Alright, that should do it. Please fix if possible.