On 10/18/05, Stephane De Jonckheere <[EMAIL PROTECTED]> wrote: > Aren't there some method or component that support some "addExistingChild" > method?
I assume your question is about Flex 1.5 -- no, there's no way to move an existing child to another container. [flex2] In Flex 2, however, you can change the parent of an object very easily. var button:Button = new Button(); button.label = "OK"; container1.addChild(button): // move to container2 (gets removed from container1) container2.addChild(button); We do this in some places in the framework code, and it can be quite useful. [/flex2] ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/

