# Reseting everything through AS

**URL:** <https://forum.kirupa.com/t/reseting-everything-through-as/197852>\
**Category:** Uncategorized\
**Created:** [August 19, 2006, 10:18pm UTC](https://forum.kirupa.com/t/reseting-everything-through-as/197852 "2006-08-19T22:18:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ceejeeb](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@Ceejeeb](https://forum.kirupa.com/u/Ceejeeb)\
**Post date:** [August 19, 2006, 10:18pm UTC](https://forum.kirupa.com/t/reseting-everything-through-as/197852/1 "2006-08-19T22:18:55Z")

</div>

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.
