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], "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?
> >
> >
>


Reply via email to