Stacking Movieclips/BringToFront. Help Please :)

Hey all question time :slight_smile:

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