no luck with that, I ended up just entirely removing the objects that
had layers and then recreating them.  Please let me know if anyone
figures out how to handle this a little more elegantly.

On Sep 18, 10:21 pm, katopz <[email protected]> wrote:
> try cube.layer = null;
>
> hth
>
> On 19 September 2010 08:36, savagelook <[email protected]> wrote:
>
>
>
>
>
> > Is there a way to remove the layer from an away3dlite object once you
> > create one?  I set up my layer like this, which works fine:
>
> > cube.layer = new Sprite();
> > cube.layer.blendMode = BlendMode.HARDLIGHT;
> > cube.layer.filters = [new GlowFilter(0xffffff,0.5)];
> > _view.addChild(cube.layer);
> > _view.scene.addChild(cube);
>
> > When I try to remove the layer so that I can view the un-blended and
> > un-filtered original view, everything just disappears.  I tried
> > removing the layer like this:
>
> > _view.removeChild(cube.layer);
>
> > But the cube just disappears then.  How am I supposed to properly
> > remove the layer from an away3dlite object?
>
> --
> Regards
> -----------------------------------------------------------
> Todsaporn Banjerdkit, katopz,http://sleepydesign.com
> Away3DLite and JigLibFlash Developer Team

Reply via email to