PDA

View Full Version : Click a button - make it come to the top



kidpablo
September 11th, 2003, 05:41 AM
Say I have 10 buttons all on the same layer (which in fact are drop boxes) - How can I make each one appear at the top when it's clicked?


Any ideas?

Eric Jr.
September 11th, 2003, 06:20 AM
mx:


this.swapDepths(1000); // easiest, but all the others get mixed up.


mx2004:


mx.behaviors.DepthControl.bringToFront(this);

kidpablo
September 11th, 2003, 06:37 AM
GREAT - THANKS!