Hi Rob, That does not work.. in cases its hiding the window, and in some cases it is not doing anything.
I am comparing the depth of all the windows that I have in the array and then setting the window depth above the most highest one. and that seems to work. Regards Rajesh J --- In [email protected], "Rob Rusher" <[EMAIL PROTECTED]> wrote: > Rajesh, > Because each title window has a parent you can simply get the top child with > the getChildAt() method and then set your target above that. > > function popToTop( target : mx.core.UIObject ) > { > var parent = target.parent; > var topSibling = parent.getChildAt( parent.numChildren - 1 ); > > if ( topSibling != target ) > target.setDepthAbove( topSibling ); > } > > HTH, > > Rob Rusher > > RIA Consultant > Macromedia Certified Flex Instructor > e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Rajesh Jayabalan > Sent: Monday, August 15, 2005 5:50 PM > To: [email protected] > Subject: [flexcoders] move window up > > Hi, > > My application uses multiple titlewindows, and I am storing the > reference of them in a arraylist, and creating a dynamic menu. Now in > the script how do I set the depth of the window so that the window can > be on the top. I cannot use setdepthabove since I do not know which > window is on the top currently. > > Regards > Rajesh J > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hc5qeiu/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124158174/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font> --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

