<html><body bgcolor="#FFFFFF"><div>Omg! This makes my day! I wish I thought of that. This could be the perfect formula. THANKS!</div><div><br></div><div>On Jun 23, 2009, at 8:19 AM, Ross Sclafani &lt;<a href="mailto:ross.sclafani@gmail.com">ross.sclafani@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>there is no width property of Plane.<div><br></div><div>try the following:</div><div>function getPlaneWidth(p:Plane){</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>with(p){</div><div><span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; "><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;">        <span class="Apple-tab-span" style="white-space:pre">        </span></span></font></span>return (geometry.aabb.maxX - geometry.aabb.minX)*scaleX</span></div><div><div style="margin-top: 0px;
 margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">}</div><div><div>On Jun 23, 2009, at 11:06 AM, montey wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Thanks Gordon,<br><br>I can't seem to be able to get the width of the evt that was clicked on. I<br>set my click event on the plane &nbsp;When I try to do a call like this it throws<br>an error.<br>My plane consists of a bunch of color materials. which are &nbsp;set to be<br>interactive = true<br><br>Property width not found on org.papervision3d.objects.primitives.Plane and<br>there is no default value.<br><br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span"
 style="white-space:pre">        </span>private function onPlaneClick( evt : InteractiveScene3DEvent ) : void<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>{<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>//camera.lookAt(evt.target as Plane);<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>var targetPlane : Plane = evt.target as Plane<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>trace("evt.target = "+targetPlane.width)<br><span class="Apple-tab-span"
 style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>/*var xpos:Number = evt.target.x - evt.target.width/2;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>var ypos:Number = evt.target.y - evt.target.height/2;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>var zpos:Number = &nbsp;evt.target.z - 100;<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>TweenMax.to(camera, .8, {x:xpos, y:ypos, z:zpos, ease:Expo.easeOut});<br><span class="Apple-tab-span"
 style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>camera.lookAt(evt.target as Plane);<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>*/<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>trace("camera target = "+camera.target);<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>}<br><br>gordee wrote:<br><blockquote
 type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If I have understood what you are trying to do, then try this;<br></blockquote><blockquote type="cite">interactiveScene3DEvent.target is the plane clicked on;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">var xpos:Number = iS3DEvent.target.x - iS3DEvent.target.width/2;var<br></blockquote><blockquote type="cite">ypos:Number = iScene3DEvent.target.y - iS3DEvent.target.height/2;<br></blockquote><blockquote type="cite">zpos:Number = iScene3DEvent.target.z - 100;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Tweener.addTween(camera, {x:xpos, y:ypos, :z:zpos, time:1});<br></blockquote><blockquote type="cite">hth<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Regards<br></blockquote><blockquote type="cite">Gordon Everett<br></blockquote><blockquote
 type="cite"><br></blockquote><blockquote type="cite">My preferred email address: <a href="mailto:gordon.everett2@gmail.com"><a href="mailto:gordon.everett2@gmail.com">gordon.everett2@gmail.com</a></a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> My Blog: <a href="http://flashgordonmedia.blogspot.com/"><a href="http://flashgordonmedia.blogspot.com/">http://flashgordonmedia.blogspot.com/</a></a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Date: Mon, 22 Jun 2009 22:18:15 -0700<br></blockquote></blockquote><blockquote
 type="cite"><blockquote type="cite">From: <a href="mailto:e_account@mac.com"><a href="mailto:e_account@mac.com">e_account@mac.com</a></a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">To: <a href="mailto:papervision3D@osflash.org"><a href="mailto:papervision3D@osflash.org">papervision3D@osflash.org</a></a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Subject: [Papervision3D] &nbsp;Animating camera to target<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I have 20 planes positioned with z spacing what I'm trying to do is move<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">camera through all my planes
 as the user clicks on each plane. I'm trying<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">to<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">figure out how to do that. I tried setting the camera target to the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">clicked<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">plane but that didn't work. I just want to tween the camera through each<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">plane like a fly through.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Any ideas please. <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-- <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">View this message in
 context:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://www.nabble.com/Animating-camera-to-target-tp24158838p24158838.html"><a href="http://www.nabble.com/Animating-camera-to-target-tp24158838p24158838.html">http://www.nabble.com/Animating-camera-to-target-tp24158838p24158838.html</a></a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Sent from the Papervision3D mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Papervision3D mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote
 type="cite"><a href="mailto:Papervision3D@osflash.org"><a href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a></a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org"><a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a></a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_________________________________________________________________<br></blockquote><blockquote type="cite">Get the best of MSN on your mobile<br></blockquote><blockquote type="cite"><a href="http://clk.atdmt.com/UKM/go/147991039/direct/01/"><a href="http://clk.atdmt.com/UKM/go/147991039/direct/01/">http://clk.atdmt.com/UKM/go/147991039/direct/01/</a></a><br></blockquote><blockquote
 type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Papervision3D mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Papervision3D@osflash.org"><a href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a></a><br></blockquote><blockquote type="cite"><a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org"><a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a></a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br>-- <br>View this message in context: <a href="http://www.nabble.com/Animating-camera-to-target-tp24158838p24167306.html"><a href="http://www.nabble.com/Animating-camera-to-target-tp24158838p24167306.html">http://www.nabble.com/Animating-camera-to-target-tp24158838p24167306.html</a></a><br>Sent from the Papervision3D
 mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><br><br>_______________________________________________<br>Papervision3D mailing list<br><a href="mailto:Papervision3D@osflash.org"><a href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a></a><br><a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a><br></div></blockquote></div><br></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Papervision3D mailing list</span><br><span><a href="mailto:Papervision3D@osflash.org">Papervision3D@osflash.org</a></span><br><span><a href="http://osflash.org/mailman/listinfo/papervision3d_osflash.org">http://osflash.org/mailman/listinfo/papervision3d_osflash.org</a></span><br></div></blockquote><br>

      </body></html>