Great! I'm assuming your not trying to create windows (in which case I would tell you how to use the components that came with MX)??
Realy busy right now and this will take to much time away from work to explain good.
I can tell you however that you should use "target.swapDepths(depth)" and a for loop etc. etc.
Take a look inside the Dragable Pane component at the first frame actions and search for "paneList". By following this and implementing it with the attached e.g. you should be able to get it. (the e.g. is NOT finished, it is purely a test and I was in the middle of that
, I just thought it might help you out a little)
Mabye another member has the time (and mabye a better solution) to help you out...