Don't remove container_middle at all. Instead add/remove its children:

container_middle.addChildAt(newImage, 0);
container_middle.removeChildAt(1);
 
Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net

> -----Original Message-----
> From: [email protected] [mailto:flashcoders-
> [email protected]] On Behalf Of jonathan howe
> Sent: Wednesday, May 19, 2010 12:23 PM
> To: Flash Coders List
> Subject: Re: [Flashcoders] Flashing Flash
> 
> Looping in frame code, looping in ENTER_FRAME event or looping via a
> timer?
> 
> On Wed, May 19, 2010 at 1:16 PM, Bob Wohl <[email protected]> wrote:
> 
> > W/O seeing what is exactly going on... maybe set the alpha to 0 till
> it's
> > been added?
> >
> > On Wed, May 19, 2010 at 9:19 AM, John Singleton
> > <[email protected]>wrote:
> >
> > > Hi;
> > > I have this code:
> > >
> > >                big_container.removeChild(container_middle);
> > >                big_container.removeChild(container_middle2);
> > >                container_middle = new Sprite();
> > >                big_container.addChild(container_middle)
> > >
> > > It loops and is called in each iteration except the first. The
> problem
> > is,
> > > when it runs, the image in the container momentarily disappears
> then
> > > reappears, which doesn't look good. How work around this?
> > > TIA,
> > > John
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Flashcoders mailing list
> > > [email protected]
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> 
> 
> 
> --
> -jonathan howe
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to