Setting .visible=false property of MovieClipSprite does not make it invisible

Software: Away3D 3.x

Jos Yule, Newbie
Posted: 25 June 2011 06:25 PM   Total Posts: 6

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

   
   
‹‹ get x,y,x value from vertice

X

Away3D Forum

Member Login

Username

Password

Remember_me



X