away3d 3.6 to 4.0 - scene.maxX

Software: Away3D 4.x

Avatar
FlyOn, Jr. Member
Posted: 06 December 2011 07:18 PM   Total Posts: 36

Another question in stepping over to away3d 4:

I havn’t found an easy replacement yet for

//worked in 3.6
scene.minX
scene
.maxY
//etc.. 

All I can think of now is this:

private function getMaxX():Number
{
 
var maxX:Number 0;
 for (var 
i:Number 0view.scene.numChildreni++)
 
{
  
var child:ObjectContainer3D view.scene.getChildAt(i);
  
maxX Math.max(child.maxXmaxX);
 
}
 
return maxX;

Is there a better way?

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X