Looping problem

I’m using F8 and AS2.0

I have a frame where the action happens in my game. This frame’s logic declares the variable S which keeps track of score. When the games timer (a variable which loses value each frame until it reaches zero) terminates and moves to the results frame, the dynamic text box “finalscore_txt” is instructed in that keyframes code to display the value of S.
Also, there is a second dynamic text box which is coded to return a rating based upon how high a score the player achieved (also testing S).
When I run the test, using a trace to keep track of the value of S, the code in the results frame does not function; even though the trace shows me that the value of S is the same as it was at the end of the game keyframe, the dynamic text which displays S does not show the correct value, nor does the rating deliver a verdict.
I made sure that S is declared outside of the actual scoring function, so that it is not a local variable.
Now, since I can see that S still exists in that frame, and that S is still the same value as it was in the previuos frame, why will the dynamic text not display the proper values?

Second, I inlcuded a “play again” button which returns the playhead to the first frame, restarting the game. On the initial play of the game, there are no problems, and on the 3rd, 5th, 7th etc. plays the game runs fine, however, on the second play (first replay) and all other even numbered plays, the button listener for the spacebar does not function.

The first problem I figure is simply this being my first project, but the second doesn’t make much sense to me at all; I’d appreciate any tips. :slight_smile: