I'm trying to figure out a way to completely restart my flash movie once for example the game has finished and the user wants to restart it. The issue is that there's lots of dynamically generated variables and arrays and such and I'm pretty sure I have a few memory leaks inside the game as well. The easiest solution I can think of is just forcing the browser to refresh when the user clicks the replay button? Unless theres a better way of doing it?
I know the best way to do this is to free up all the variables and restart it all properly but I've been trying that for a few days and have now lost my patience with it.