Reseting everything through AS

I have a project that when run, object depths are changed to bring active movieclips to the front. But when the project is reset to the beginning (via a button) the object that was brought to the front most recent is still at the top level.

Why is this happening and how can i reset all the depths to what they are when the project is first run?

Basically i need to be able to reset and rerun the swf as if it had been re-opened.