[Papervision3D] How to remove planes from scene? (AS2)
Pedro Moraes
pedromoraes at gmail.com
Wed Jun 27 11:32:20 EDT 2007
I'm using simply scene.objects.splice(index, 1);
Not sure it's the best way though.
Cheers!
Zeh Fernando wrote:
> Hello list,
>
> Anyone knows what's the correct way to remove an object from a scene
> using the AS2 version of Papervision3D?
>
> I'm creating planes this way:
>
> var fp:MovieClip = (some random movieclip);
> var mt:MovieMaterial = new MovieMaterial(fp, false, {animated:true});
> var pl:Plane = new Plane(mt, PLANE_WIDTH, PLANE_HEIGHT);
> ...
> scene.push(mt);
> scene.push(pl);
>
> However, this is used on a reusable instance, so after a while I want to
> remove the plane and the material as well, to avoid memory waste, and
> replace them with other content.
>
> What would be the correct approach to remove the planes? I had a hard
> time finding an answer to that on the list archives as the AS3 version
> usually takes the spotlight.
>
>
> Thanks,
> Zeh
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
More information about the Papervision3D
mailing list