<div><font face="courier new,monospace">hey,</font></div>
<div><font face="courier new,monospace">adding interactivity in PV3D is the</font></div>
<div><font face="Courier New">same weather your using flash or flex.</font></div>
<div><font face="courier new,monospace"></font>&nbsp;</div>
<div><font face="courier new,monospace">i cant see all your code.</font></div>
<div><font face="courier new,monospace">but in the function that creates </font></div>
<div><font face="courier new,monospace">the actual planes add this code:</font></div>
<div><font face="courier new,monospace"></font>&nbsp;</div>
<div><font face="Courier New">[code]</font></div>
<div><font face="courier new,monospace">&nbsp;function somthing():void {</font></div>
<div><font face="courier new,monospace">&nbsp;&nbsp; var myPlane:Plane = new Plane(....);</font></div>
<div><font face="Courier New">&nbsp;&nbsp; myPlane.material.interactive = true;</font></div>
<div><font face="courier new,monospace">&nbsp;&nbsp; myPlane.addEventListener(InteractiveScene3DEvent.CLICK, hit);</font></div>
<div><font face="courier new,monospace">&nbsp;}</font></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><font face="courier new,monospace">&nbsp;function hit(e:InteractiveScene3DEvent):void {</font></div>
<div><font face="courier new,monospace">&nbsp;&nbsp; Alert.show(&quot;This plane was clicked!&quot;);</font></div>
<div><font face="courier new,monospace">&nbsp;}</font></div>
<div><font face="Courier New">[/code]</font></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><font face="courier new,monospace">hope that helps!<br clear="all">____ &nbsp;___<br>\ &nbsp; \/ &nbsp;/___________ &nbsp;____<br>.\ &nbsp; &nbsp; // __ \_ &nbsp;__ \/ _ &nbsp;\<br>./ &nbsp; &nbsp; \ &nbsp;___/ | | \( &lt;_&gt; &nbsp;)<br>/___/\ &nbsp;\___ &nbsp;&gt;__|---\____/<br>| &nbsp; &nbsp; \_/ &nbsp; \/ &nbsp; &nbsp; &nbsp; &nbsp;|<br>
| xero harrison &nbsp; &nbsp; &nbsp; |<br>| <a href="http://xero.nu">xero.nu</a>@<a href="http://gmail.com">gmail.com</a> &nbsp; |<br>| <a href="http://xero.nu">http://xero.nu</a> &nbsp; &nbsp; &nbsp;|<br>| <a href="http://fontvir.us">http://fontvir.us</a> &nbsp; |<br>
| <a href="http://hexarray.nu">http://hexarray.nu</a> &nbsp;| <br>| <a href="http://xero.owns.us">http://xero.owns.us</a> |<br>`---------------------&#39;&nbsp;&nbsp;<br><br></font></div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">---------- Forwarded message ----------<br>From:&nbsp;j2me_soul &lt;<a href="mailto:j2me_soul@163.com">j2me_soul@163.com</a>&gt;<br>
To:&nbsp;flexcoders &lt;<a href="mailto:flexcoders@yahoogroups.com">flexcoders@yahoogroups.com</a>&gt;<br>Date:&nbsp;Wed, 6 May 2009 21:45:16 +0800 (CST)<br>Subject:&nbsp;[Papervision3D] Flex with PV3D. How to make a Plane in a canvas to accept the events?<br>

<div>Hi all,</div>
<div>&nbsp;</div>
<div>I put some planes in the viewport in a canvas.</div>
<div>But the planes can&#39;t accept any mouse-click event from canvas.</div>
<div>I set the viewport.interative = true, material of&nbsp;each plane = true, but it dosen&#39;t work.</div>
<div>What should I do now ?</div>
<div>&nbsp;</div>
<div>/* </div>
<div>&nbsp;*&nbsp;&nbsp; In the ReflectionWall class, for each Plane setting a function</div>
<div>&nbsp;*&nbsp;&nbsp; p = new Plane(ma,_imageWidth, _imageHeight, _seg, _seg);<br>&nbsp;*&nbsp;&nbsp; p.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, planeClickEvent);</div>
<div>*/</div>
<div>&nbsp;&nbsp;&nbsp;private var ref:ReflectionWall;</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;private function init():void{</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;ref = new ReflectionWall(&quot;images/Belle.png&quot;,100, 100, 54, can.width, can.height);<br>&nbsp;&nbsp;&nbsp;&nbsp;can.rawChildren.addChild(ref);</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;ref.camera.zoom = 50;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;addEventListener(Event.ENTER_FRAME, ref.render);<br>&nbsp;&nbsp;&nbsp;}</div>
<div>&nbsp;</div>
<div>&lt;mx:Canvas id=&quot;can&quot; width=&quot;1000&quot; height=&quot;750&quot; /&gt;<br></div><br><br><span title="neteasefooter">
<hr>
<a href="http://512.mail.163.com/mailstamp/stamp/dz/activity.do" target="_blank">穿越地震带 纪念汶川地震一周年</a> </span><br></blockquote></div>