PDA

View Full Version : That unruly swapDepths again


helenb29
10-19-2005, 05:30 PM
on (press) {
this.swapDepths("_level0:window"+_level0:highest);
_level0:highest = substring(_name, 7, 1);

//now my question is how to set the depth order to a specific order, which is the following:
//when window0 is clicked the the order should be window1 below window0, window2 below window1,window3 below window2.
//when window1 is clicked the the order should be window0 below window1, window2 below window1,window3 below window2.
//when window2 is clicked the the order should be window1 below window2, window0 below window1,window3 below window2.
//when window3 is clicked the the order should be window2 below window3, window1 below window2,window0 below window1.

}
//should I be using an array?

Thanks for your help.

Paerez
10-19-2005, 06:01 PM
Since those sound like pretty specific orderings, just code each one in by hand. If is was something easier, like "put the window that was clicked on top of everything, each time" there would be a simpler solution.