Hit a wall

I’ve been trying to get this to work for a few days now, but haven’t had any luck. I’m working with a Form Application file to simulate a program. The tree looks something like this…

mainScreen[INDENT]-textInputs[INDENT]-8 sub-screens[/INDENT]

-checkBoxes[INDENT]-3 sub-screens[/INDENT]

-dataGrids[INDENT]-7 sub-screens[/INDENT]

[/INDENT]Each of the dataGrids sub-screens contain the following:
-a DataGrid (will have XML bound to it later)
-a TextInput (will show what was selected from the datagrid)
-open/close buttons (switches the datagrid’s visibility)
-a movieClip that reveals a check or X after a selection is made
-script to include external AS file (same one works on all sub-screens)

Since this is supposed to be a simulation, I need to change the depths of the screens so that when any of the buttons are pressed the datagrid showing the choices is above everything else. I’ve tried using the DepthManager, but I haven’t been able to get it to swap the screen depths dynamically. I’ve only been able to swap one depth, and then, other screens are covered by the one I was able to move up.:puzzle:

I was thinking (hoping) that I could put something in the external AS file that could set the focus to whichever grid is selected and move whichever screen has the focus to the top of the stacking order whenever one of the buttons is pressed.

Any ideas? My brain is pretty thoroughly fried from looking at this thing. It doesn’t seem like it should be this difficult (and I can just picture this being 3 or 4 lines of code that pull it all together), but I’m stuck for now.

Thanks!