addChild item to scene might help...

Fabrice
On Jan 18, 2010, at 3:10 AM, Kapil wrote:

> 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