do try this, work for me

> package

{

import away3dlite.materials.*;

import away3dlite.primitives.*;

import away3dlite.templates.*;


> public class ExSphere extends BasicTemplate

{

override protected function onInit():void

{

var sphere:Sphere = new Sphere(new WireframeMaterial(), 100, 10, 10);

scene.addChild(sphere);

scene.removeChild(sphere);

}

}

}


hth

2009/9/18 themightyatom <[email protected]>

>
> Anybody found a way to remove an object from a scene in Away3dLite?
> The ".removeChildByName" from the main branch isn't in the new engine.
> To add objects we use the addChild command, but removeChild dosn't
> work
> as the object is not actually a flash displayObject (i think!)
>
> Any ideas greatly appreciated ;O)
>
> Cheers
>
> PS




-- 
katopz
http://www.sleepydesign.com

Reply via email to