anton...@gmail.com
unread,Feb 6, 2009, 8:30:46 PM2/6/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to away3d.dev
Recent changes to the trunk have broken some cube functionality, for
instance I cannot change cube.width without having an error, here is
the code sample:
import away3d.containers.*;
import away3d.core.base.*;
import away3d.primitives.*;
import away3d.core.math.*;
var view:View3D = new View3D({x:300, y:200});
addChild(view);
var cube:Cube = new Cube({material:"blue#", name:"cube", x: 300, y:
160, z: -80, width:200, height:200, depth:200});
view.scene.addChild(cube);
view.camera.position = new Number3D(1000, 1000, 1000);
view.camera.lookAt(cube.position);
cube.width=1000; //HERE GOES THE ERROR
view.render();