[flexcoders] Maximizing to fullscreen a component
Hi, I'm currently trying to enhance the Christophe's pods. I'd like to add some Fullscreen feature: When clicking on the Fullscreen button, the panel is taking the whole browser screen overlapping everything. I managed to do that by using createChild() and instanciating a new Panel which I refill with the previously entered data (when the panel was in normal mode). But as our application will be huge and will contains tons of Panel. I'd like to reuse the existing panel instance and replace its parent by the main layout (there can be a indefinite number of layers between the panel and the main layout aka any fullscreenable panel should be capable to overlap everything without carring about its depth in the application). Aren't there some method or component that support some addExistingChild method? Stephane De Jonckheere, EIM SA, Switzerland *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** 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/
Re: [flexcoders] Maximizing to fullscreen a component
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/