I’ve got an ObjectContainer3D instance to which i’ve added a couple of MovieClipSprites.
var oc:ObjectContainer3D = new ObjectContainer3D();
var sp1:MovieClipSprite = new MovieClipSprite( new MyMC(), "left", 1);
var sp2:MovieClipSprite = new MovieClipSprite( new MyOtherMC(), "left",1);
oc.addSprite(sp1);
oc.addSprite(sp2);
I now want to toggle the visibility of these sprites. I’ve been trying the following:
oc.sprites[0].visible = false;
oc.sprites[1].visible = true;
This does not seem to work. I’m not sure of any other way to get to my sprite instances then the
.sprites
property of the ObjectContainer3D class.
Any suggestions? Before this i had attached the sprites to a Mesh, but that also did not work.
Thanks
jos