[Papervision3D] iterating through a scene

Ross Hulford ross at welovethedesign.com
Tue Mar 10 08:27:39 PST 2009


Hi,

I create my scene and now want to iterate though it and move all the
children back on the z-axis


         for (var i:int=0; i< scene.numChildren-1; i++)
         {

     Tweener.addTween( scene.target.getChildAt(i),  {z:-50 , time:2 ,
transition:"bounce" });
         }


I get the error

1119: Access of possibly undefined property target through a reference
with static type org.papervision3d.scenes:Scene3D.


Can anyone help?


Thanks, 



More information about the Papervision3D mailing list