I may be wrong, but I have a guess here. First, you should not need your calls to removeChild. If you take an item that is currently in the display list, and use addChild to put it somewhere else in the display list, flex will automatically switch its parent from the old one to the new one.
My guess is that this is what is happening: "subcomponent. addChild( imageViewer) ;" is doing what you wanted to, but "app.removeChild( imageViewer) ;" is then removing the imageViewer from the display list so that it disappears. Try just removing the calls to removeChild. Sid Maskit Partner CraftySpace Better Websites for a Better World http://www.CraftySpace.com blog: http://smaskit.blogspot.com/ ----- Original Message ---- From: wwwpl <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, August 7, 2008 10:13:06 AM Subject: [flexcoders] Re: Changing Parents Forgive me, but how do you remove the child from the stage? Did you do the following (using my example): //Go to full screen app.addChild( imageViewer) ; subcomponent. removeChild( imageViewer) ; //Go to normal screen subcomponent. addChild( imageViewer) ; app.removeChild( imageViewer) ; The problem I am having is putting the imageViewer back into the subcomponent. It does not reappear in the subcomponent. --- In [EMAIL PROTECTED] ups.com, "Brian Deitte" <[EMAIL PROTECTED] > wrote: > > I did this recently, and it didn't cause havoc. What are seeing that > goes wrong? I had two issues that I did needed to fix. One is that > you have to remember to remove the child from the stage before adding > it back to the application. The second is that the bindings were > reexecuted when added back to the application, which I worked around > by checking for the same value in the places I was observing bindings. > -Brian > > On Thu, Aug 7, 2008 at 11:53 AM, wwwpl <[EMAIL PROTECTED]> wrote: > > I have an image viewer that I would like to go full screen. I now have > > my app taking up the full screen, but I need the image viewer window > > to become the size of the app window. The image viewer is a child of a > > child of a child of the Application. I am calling application. addChild > > (imageViewer) to get this to go full screen, but when I want to go back > > to the normal view, I do a application. removeChild( imageViewer) and I > > want to add it back to the parent it had before. But that doesn't > > work. How can I change parents of a component without causing havoc? > > > > >

