Here's an easy fix: parent.setChildIndex(obj,i);
Where parent is the container (can be "this"), obj is the child object you want to re-order, and i is the stack index of the position amongst the parent's children. The higher i is, the closer to the front it is. i cannot be higher than the number of children. --- In [email protected], j2me_soul <j2me_s...@...> wrote: > > It very useful to me. Thanks Jeffry! > > > > ÔÚ2009-07-03£¬"Jeffry Houser" <j...@...> дµÀ£º > > > > > > > The initial layout is related tot he order you declare things in MXML, but > that doesn't help him move children around by clicking on something in the > background. > > Take a look at SwapChildren and/or SwampChildrenAt: > http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObjectContainer.html#swapChildren() > http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObjectContainer.html#swapChildrenAt() > > claudiu ursica wrote: > > It is related to the order that you declare component in your mxml ... The > latter the better. > > C > > > > From: j2me_soul <j2me_s...@...> > To: flexcoders <[email protected]> > Sent: Friday, July 3, 2009 11:36:20 AM > Subject: [flexcoders] Bring forward something in flex > > > I have a lot titlewindow in the application. But the main panel which wrote > by mxml is always covered by some titlewindow. How can I bring the main panel > forward when I clicked it ? > > > > > > 200 ÍòÖÖÉÌÆ·,×îµÍ¼Û¸ñ,·è¿ñÓÕ»óÄã > > > > > -- > Jeffry Houser, Technical Entrepreneur > Adobe Community Expert: > http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711 | Phone: > 203-379-0773 > -- > Easy to use Interface Components for Flex Developers > http://www.flextras.com?c=104 > -- > http://www.theflexshow.comhttp://www.jeffryhouser.com > -- > Part of the DotComIt Brain Trust >

