oh and I forgot to mention. I also set the viewport.interactive to true.
viewport.interactive = true;
viewport.containerSprite.addLayer(mainViewportLayer);
On Wed, Jul 1, 2009 at 12:59 PM, quinrou .
<quinrou@...> wrote:
Hi,
I am having problems to get the the object_press and object_click event working.
My setup is as follow:
I have set my 3d scene to be interactive.
I have a main viewport layer container when i add different display object 3d with the getChildLayer method from the ViewportLayer class.
One of these viewport layer holds several display object 3d. these display object 3d hold 2 display object3d (2 planes). I have set event listeners for object_click and object_press for both planes. The texture for both planes have their intereactive property set to true too.
However the click and the press event are not fired.
What am I missing something?
here is how my scene is achitected:
scene
+mainViewportLayer (viewport layer)
+objectcontainer1 (added via getChildLayer to mainViewportLayer)
+objectconatiner2 (added via getChildLayer to mainViewportLayer)
+objectcontainer3 (added via getChildLayer to mainViewportLayer)
+obj1 (added to objectcontainer3 via addChild)
+plane1
+plane2
+obj2 (added to objectcontainer3 via addChild)
+plane1
+plane2
+obj3 (added to objectcontainer3 via addChild)
+plane1
+plane2
Help!
Thanks
S
_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org