actually reading your comments, I suggest you take a look at ObjectContainer3D 
instead.

Fabrice


On Jan 19, 2010, at 5:10 AM, Kapil wrote:

> Hi Fabrice,
> 
> Thanks for your reply.
> 
> I have tried using addChild item to scene. The item now shows but when
> the sphere moves the item doesn't move with the sphere and stays in
> the same location. Actually I am trying to implement a panorama viewer
> where I can draw objects on the sphere and objects will be attched to
> the sphere.
> 
> I read that Facelink class can be used to attach an object to sphere.
> Can you please give some direction/sample code about how to use the
> Facelink class for this purpose.
> 
> Regards
> Kapil
> 
> 
> On Jan 18, 7:10 pm, Fabrice3D <[email protected]> wrote:
>> 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