# Stacking Movieclips/BringToFront. Help Please :)

**URL:** <https://forum.kirupa.com/t/stacking-movieclips-bringtofront-help-please/230799>\
**Category:** flash\
**Created:** [June 29, 2007, 12:56am UTC](https://forum.kirupa.com/t/stacking-movieclips-bringtofront-help-please/230799 "2007-06-29T00:56:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![denizengt](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@denizengt](https://forum.kirupa.com/u/denizengt)\
**Post date:** [June 29, 2007, 12:56am UTC](https://forum.kirupa.com/t/stacking-movieclips-bringtofront-help-please/230799/1 "2007-06-29T00:56:23Z")

</div>

Hey all question time 🙂

I have a simple interface which creates “windows” by attaching them at gradually increasing depths to the stage.

Now say I click on one of these windows (I have a listener attached to each), I would like this window to come to the top. I’ve done this before using swapDepths() but fail to remember how exactly. There can possibly be any number of windows; how can I have the one I click on come to the front?

Much appreciate all ye that can help
