Assuming that the children you want to move down come after (in child index order) the one you're hiding, you could do var n:int = numChildren; for (var i:int = indexOfInvisibleControl; i < n; i++) { var child:UIComponent = UIComponent(getChildAt(i)); child.y += deltaY; } Gordon Smith Adobe Flex SDK Team
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of katherine_enos Sent: Thursday, January 03, 2008 1:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamically changing component positions I have a check box for a user to check to change the visibility of a control from false to true. After the user causes the invisible control to be revealed, I'd like to move all succeeding interface elements down the page so that their "y" coordinate increases by the height of the newly visible control. There are numerous components that will require moving and it seems a bit laborious to write a line of code to increase the "y" value for each one. Is there a simple way to cause this to happen in the .mxml file? Thanks. Katherine