package { import away3d.containers.View3D; import away3d.materials.WireColorMaterial; import away3d.primitives.Sphere; import flash.display.Sprite; [SWF(width="500", height="200", frameRate="60", backgroundColor="#FFFFFF")] public class Basic09_WireColorMaterial extends Sprite { public function Basic09_WireColorMaterial() { var view:View3D = new View3D({x:250,y:100}); addChild(view); // Quick and dirty syntax using the init-object var sphere1:Sphere = new Sphere({material:"orange#red",x:-110}); view.scene.addChild(sphere1); // The same, using verbose syntax var colorMaterial:WireColorMaterial = new WireColorMaterial(); colorMaterial.color = 0xFFA500; var sphere2:Sphere = new Sphere(); sphere2.x = 110; sphere2.material = colorMaterial; view.scene.addChild(sphere2); // Render the view view.render(); } } }