# Stacking and double clicking!

**URL:** <https://forum.kirupa.com/t/stacking-and-double-clicking/220064>\
**Category:** Uncategorized\
**Created:** [March 22, 2007, 9:48am UTC](https://forum.kirupa.com/t/stacking-and-double-clicking/220064 "2007-03-22T09:48:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyeight](https://avatars.discourse-cdn.com/v4/letter/x/ba9def/32.png) [@xyeight](https://forum.kirupa.com/u/xyeight)\
**Post date:** [March 22, 2007, 9:48am UTC](https://forum.kirupa.com/t/stacking-and-double-clicking/220064/1 "2007-03-22T09:48:03Z")

</div>

let say i have a MovieClip name window.

I wanna use stacking order for swap between windows. This is the coding i got from kirupa tutorial:  
on (press, dragOver) {  
startDrag(\_root.window);  
}  
on (release, rollOut, dragOut) {  
stopDrag();  
}  
on (press, release, dragOver, dragOut) {  
\_root.x +=2;  
\_root.window.swapDepths(\_root.x);  
}

So, the problem is, i also wanna use double clicking for open and close the window partial. How is that possible?
