Here's some code I set up to do it today on my Blender produced DAE. _lightsBaeNode is a FLARBaseNode, an AR toolkit object that is a very simple extension of DisplayObject3D and has my DAE added to it. Cylinder_001 through 007 (skipping 4 because I deleted it) are set up with event handlers. <div>
<br></div><div>Is it possible you're setting your COLLADA_Scene up with a handler rather than your actual cube. That's the first child of your DAE object I think? Cube might be a child again of that?<br><div><br></div>
<div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">(_lightsBaseNode <span style="color: #0033ff">as</span> DisplayObject3D).getMaterialByName(<span style="color: #990000">"OHLightBodyMat"</span>).interactive = <span style="color: #0033ff">true</span>;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                        </span><span style="color: #6699cc">var</span> colladaScene = _modelStore.lightsDAE.getChildByName(<span style="color: #990000">"COLLADA_Scene"</span>)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                        </span><span style="color: #0033ff">for</span>(<span style="color: #6699cc">var</span> i=1; i<=7; i++) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                                </span><span style="color: #0033ff">if</span>(i!=4) {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                                        </span><span style="color: #6699cc">var</span> lightBody = colladaScene.getChildByName(<span style="color: #990000">"Cylinder_00"</span>+i);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                                        </span>lightBody.addEventListener(InteractiveScene3DEvent.OBJECT_OVER, overLsnr);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                                        </span>lightBody.addEventListener(InteractiveScene3DEvent.OBJECT_OUT, outLsnr);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                                        </span>lightBody.addEventListener(InteractiveScene3DEvent.OBJECT_RELEASE, lightClickLsnr);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                                </span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><span class="Apple-tab-span" style="white-space:pre">                        </span>}</p><div><br></div><div><br><br><div class="gmail_quote">On Fri, Apr 17, 2009 at 9:40 AM, Paul Tondeur <span dir="ltr"><<a href="mailto:paul@paultondeur.nl">paul@paultondeur.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Derek,<br>
<br>
Have you tried setting mat.interactive = value recursively on all children of the targetobject inside your setInteractiveMaterials method? You define eventlisteners recursively for all the child objects of your collada , but you don't set mat.interactive = true recursively.<br>
<br>
You could try to replace your setInteractiveMaterials method by this one:<div class="im"><br>
<br>
private function setInteractiveMaterials(targetObject:DisplayObject3D, value:Boolean):void<br>
{<br>
for each(var mat:MaterialObject3D in targetObject.materials.materialsByName)<br>
{<br>
mat.interactive = value;<br>
}<br></div>
for each(var child:DisplayObject3D in targetObject.children) {<br>
setInteractiveMaterials(child,value);<br>
}<br>
}<br>
<br>
Hope that works!<br><font color="#888888">
<br>
Paul</font><div><div></div><div class="h5"><br>
<br>
On Apr 17, 2009, at 1:17 AM, derekobrien wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
<br>
I modified my actionscript to:<br>
[Actionscript]<br>
private function setupPV3D():void<br>
{<br>
scene = new Scene3D();<br>
cam = new Camera3D();<br>
cam.z = -1000;<br>
cam.y = 300;<br>
vp = new Viewport3D(600, 400, false, true, true, true);<br>
bre = new BasicRenderEngine();<br>
addChild(vp);<br>
}<br>
[/Actionscript]<br>
<br>
but still nothing, flash renders cube with material but when I click on the<br>
cube.... nothing. :-(<br>
<br>
Derek<br>
-- <br>
View this message in context: <a href="http://www.nabble.com/Interactive-Objects-%28Mouse-Events%29-tp23087249p23088381.html" target="_blank">http://www.nabble.com/Interactive-Objects-%28Mouse-Events%29-tp23087249p23088381.html</a><br>
Sent from the Papervision3D mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
Papervision3D mailing list<br>
<a href="mailto:Papervision3D@osflash.org" target="_blank">Papervision3D@osflash.org</a><br>
<a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
Papervision3D mailing list<br>
<a href="mailto:Papervision3D@osflash.org" target="_blank">Papervision3D@osflash.org</a><br>
<a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>.......................................<br><br>Among the things Billy Pilgrim could not change were the past, the present, and the future.<br>
</div></div></div>