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.
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.