Hey, I just dled away 3d and the demo doesn't work, but that's fine. I
got it working with the new build except I getting this error when I
try to add the WireColorMaterial to the sphere:
D:\wamp\www\away3d\away3d_svn\examples\HelloAway3D\src
\HelloAway3D.as(26): col: 11 Error: Attempted access of inaccessible
method material through a reference with static type
away3d.primitives:Sphere.
Here is the code:
public function HelloAway3D()
{
view = new View3D();
view.x = 300;
view.y = 200;
addChild(view);
sphere = new Sphere({radius:250, segmentsW:12, segmentsH:
9, y:50});
sphere.material(new WireColorMaterial(0xFF7700,
0xCC4400));
view.scene.addChild(sphere);
view.camera.lookAt(sphere.position);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
I'm not too familiar with the use of namescaces (ie the use of the
arcane namespace), but from I understand that's just limits the use of
function calls inbetween functions, a more advanced version of
private? Anyway, from what I can tell the material setting method is
defined in Mesh and never touched anywhere else in the Sphere
heirarchy. Building with the latest Flex 3 SDK, 3.1.0. Maybe I should
downgrade that?