I'm just finishing up my first flash game (thanks to many people on this forum, especially lauri), and I'm having a couple issues, but my main one is getting the
replay button at the Win/Lose screen to work.
I tried using some code I found from another thread on this forum, but I still couldn't get it to work. It's possible that I just didn't understand how to implement the code. Here's what I was trying:
Code:
replay_btn.onRelease = function(){
loadMovieNum("yourgame.swf", 0);
};
I also tried having the button re-run my "initiate game" function (which sets all the game values to their starting state), but that doesn't seem to be doing anything.
Any help would be very much appreciated
Here's my swf: tjrobertson.com/games/beegamev3.html
And my fla: tjrobertson.com/games/beegamev3.fla
I apologize if my code is messy. The replay button function can be found on lines 415 - 422 of the main timeline... altho it's not doing anything at the moment.
Thank you!
TJ