I am trying to create a simple scorekeeping function for a game. When a user clicks or rolls over something it either adds a point or subtracts a point. I am trying to do this by using LoadmovieNum and levels so each time they click on something it goes to this file and moves the playhead forward or backward. I have built a file that has 10 frames with a stop action on each frame and each has a score - starting with 0 up to 100. The idea is that when they add a point it moves the playhead forward and goes to the previous frame if they lose a point. Is there a better way to do this?
to add a point:
on (press) {
play();
loadMovieNum ("score.swf", 1);
nextFrame();
}
to lose a point:
on (press) {
play();
loadMovieNum ("score.swf", 1);
prevFrame();
}
to add a point:
on (press) {
play();
loadMovieNum ("score.swf", 1);
nextFrame();
}
to lose a point:
on (press) {
play();
loadMovieNum ("score.swf", 1);
prevFrame();
}