Re:Re: [flexcoders] Bring forward something in flex

2009-07-06 Thread kenny14390
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 flexcoders@yahoogroups.com, 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 flexcoders@yahoogroups.com
 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





Re:Re: [flexcoders] Bring forward something in flex

2009-07-05 Thread j2me_soul
It very useful to me. Thanks Jeffry!



在2009-07-03,Jeffry Houser j...@farcryfly.com 写道:






  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...@163.com
To: flexcoders flexcoders@yahoogroups.com
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


Re:Re: [flexcoders] Bring forward something in flex

2009-07-03 Thread j2me_soul
How can I change the order at runtime?
If I wanna bring some component forward.
Just like the titlewindow, the titlewindow clicked bring to the most head of 
the screen.



在2009-07-03,claudiu ursica the_bran...@yahoo.com 写道:





It is related to the order that you declare component in your mxml ... The 
latter the better. 

C



From: j2me_soul j2me_s...@163.com
To: flexcoders flexcoders@yahoogroups.com
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万种商品,最低价格,疯狂诱惑你