I am trying to draw an object (i.e., Cube) on a sphere (on MouseClick
event) using Facelink class. When the code is executed the object does
not show up.

Following is my code for MouseDown event handler:

private function mySphereMouseDownHandler(e:MouseEvent3D):void
{
  if(e.object is Sphere)
  {
    var item:Cube = new Cube({material:"green#black",depth:50,width:
50,height:50});
    var sphere:Sphere = e.object as Sphere;
    var facelinkSphere:FaceLink = new FaceLink(item, sphere,
sphere.faces[0], 0, true );
    facelinkSphere.update(true);
  }
}

Any suggestions?

Thanks
Kapil


Reply via email to