oh and I forgot to mention. I also set the viewport.interactive to true.<br><br>viewport.interactive = true;<br>viewport.containerSprite.addLayer(mainViewportLayer);<br><br><br><div class="gmail_quote">On Wed, Jul 1, 2009 at 12:59 PM, quinrou . <span dir="ltr"><<a href="mailto:quinrou@gmail.com">quinrou@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I am having problems to get the the object_press and object_click event working.<br>
<br>My setup is as follow:<br><br>I have set my 3d scene to be interactive.<br>I have a main viewport layer container when i add different display object 3d with the getChildLayer method from the ViewportLayer class.<br>
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.<br>
<br>However the click and the press event are not fired. <br><br>What am I missing something?<br><br>here is how my scene is achitected:<br><br>scene<br> +mainViewportLayer (viewport layer)<br> +objectcontainer1 (added via getChildLayer to mainViewportLayer)<br>
+objectconatiner2 (added via getChildLayer to mainViewportLayer)<br> +objectcontainer3 (added via getChildLayer to mainViewportLayer)<br> +obj1 (added to objectcontainer3 via addChild)<br> +plane1<br> +plane2<br>
+obj2 (added to objectcontainer3 via addChild)<br>
+plane1<br>
+plane2<br> +obj3 (added to objectcontainer3 via addChild)<br>
+plane1<br>
+plane2<br><br>Help!<br>Thanks<br>S<br>
</blockquote></div><br>