package { import away3d.containers.View3D; import away3d.materials.WireframeMaterial; import away3d.primitives.Sphere; import flash.display.Sprite; [SWF(width="500", height="200", frameRate="60", backgroundColor="#FFFFFF")] public class Basic09_WireframeMaterial extends Sprite { public function Basic09_WireframeMaterial() { var view:View3D = new View3D({x:250,y:100}); addChild(view); // Quick and dirty syntax using the init-object can't be done for this material // Setting up material using verbose syntax var colorMaterial:WireframeMaterial = new WireframeMaterial(); colorMaterial.color = 0xFFA500; colorMaterial.width = 2; var sphere:Sphere = new Sphere(); sphere.material = colorMaterial; view.scene.addChild(sphere); // Render the view view.render(); } } }