<DIV>How to use the tooltip on the plane ?<BR><BR></DIV>
<DIV></DIV><BR><PRE>在2009-05-07,papervision3d-request@osflash.org 写道:
&gt;Send Papervision3D mailing list submissions to
&gt;        papervision3d@osflash.org
&gt;
&gt;To subscribe or unsubscribe via the World Wide Web, visit
&gt;        http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;or, via email, send a message with subject or body 'help' to
&gt;        papervision3d-request@osflash.org
&gt;
&gt;You can reach the person managing the list at
&gt;        papervision3d-owner@osflash.org
&gt;
&gt;When replying, please edit your Subject line so it is more specific
&gt;than "Re: Contents of Papervision3D digest..."
&gt;
&gt;
&gt;Today's Topics:
&gt;
&gt;   1. Re: Papervision3D Digest, Vol 32, Issue 11 (Andy Zupko)
&gt;
&gt;
&gt;----------------------------------------------------------------------
&gt;
&gt;Message: 1
&gt;Date: Wed, 6 May 2009 11:27:59 -0500
&gt;From: Andy Zupko &lt;azupko@zupko.info&gt;
&gt;Subject: Re: [Papervision3D] Papervision3D Digest, Vol 32, Issue 11
&gt;To: papervision3d@osflash.org
&gt;Message-ID: &lt;D2EFDAF5-2926-4BCD-A78A-EC0905BDC2ED@zupko.info&gt;
&gt;Content-Type: text/plain; charset="us-ascii"; Format="flowed";
&gt;        DelSp="yes"
&gt;
&gt;You can do Number3D.sub(pointA, pointB).modulo (or moduloSquared for  
&gt;faster)
&gt;
&gt;
&gt;On May 6, 2009, at 11:08 AM, Gwilym Johnston wrote:
&gt;
&gt;&gt; Hi all,
&gt;&gt;
&gt;&gt; Quick question:
&gt;&gt; is there an equivalent of Point.distance(pointA, pointB) in  
&gt;&gt; Papervision?
&gt;&gt;
&gt;&gt; Thanks
&gt;&gt;
&gt;&gt; On 6 May 2009, at 10:30, Papervision3D-request@osflash.org wrote:
&gt;&gt;
&gt;&gt;&gt; Send Papervision3D mailing list submissions to
&gt;&gt;&gt;         papervision3d@osflash.org
&gt;&gt;&gt;
&gt;&gt;&gt; To subscribe or unsubscribe via the World Wide Web, visit
&gt;&gt;&gt;         http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;&gt;&gt; or, via email, send a message with subject or body 'help' to
&gt;&gt;&gt;         papervision3d-request@osflash.org
&gt;&gt;&gt;
&gt;&gt;&gt; You can reach the person managing the list at
&gt;&gt;&gt;         papervision3d-owner@osflash.org
&gt;&gt;&gt;
&gt;&gt;&gt; When replying, please edit your Subject line so it is more specific
&gt;&gt;&gt; than "Re: Contents of Papervision3D digest..."
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Today's Topics:
&gt;&gt;&gt;
&gt;&gt;&gt;   1. DAE Memory Leak (Ryan Kee)
&gt;&gt;&gt;   2. Detect Mouse Events in a viewport (Sandeep Menon)
&gt;&gt;&gt;   3. Re: Detect Mouse Events in a viewport (Steve D)
&gt;&gt;&gt;   4. Re: Detect Mouse Events in a viewport (Sandeep Menon)
&gt;&gt;&gt;   5. Re: Detect Mouse Events in a viewport (Steve D)
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ----------------------------------------------------------------------
&gt;&gt;&gt;
&gt;&gt;&gt; Message: 1
&gt;&gt;&gt; Date: Tue, 5 May 2009 15:25:39 -0500
&gt;&gt;&gt; From: Ryan Kee &lt;me@ryankee.com&gt;
&gt;&gt;&gt; Subject: [Papervision3D] DAE Memory Leak
&gt;&gt;&gt; To: papervision3d@osflash.org
&gt;&gt;&gt; Message-ID: &lt;A5C971FF-87AE-4960-824A-4588DA568B13@ryankee.com&gt;
&gt;&gt;&gt; Content-Type: text/plain; charset="us-ascii"; Format="flowed";
&gt;&gt;&gt;         DelSp="yes"
&gt;&gt;&gt;
&gt;&gt;&gt; Hey everyone. I'm having an issue with a memory leak when dealing  
&gt;&gt;&gt; with
&gt;&gt;&gt; DAEs. At first I thought it was the same problem that older builds of
&gt;&gt;&gt; PV3D had with dictionary objects not using weak references (Seb fixed
&gt;&gt;&gt; those a few months ago:http://www.sebleedelisle.com/?p=309), but  
&gt;&gt;&gt; after
&gt;&gt;&gt; running side by side tests of adding and deleting primitives and  
&gt;&gt;&gt; DAEs,
&gt;&gt;&gt; the memory creep was only present with DAE files.
&gt;&gt;&gt;
&gt;&gt;&gt; For my current application I have the need to load and unload several
&gt;&gt;&gt; DAE models and apply the same texture to all of them. In theory,
&gt;&gt;&gt; something like this should work:
&gt;&gt;&gt; Code:
&gt;&gt;&gt;
&gt;&gt;&gt; import org.papervision3d.materials.ColorMaterial;
&gt;&gt;&gt; import org.papervision3d.materials.utils.MaterialsList;
&gt;&gt;&gt; import org.papervision3d.objects.parsers.DAE;
&gt;&gt;&gt; import org.papervision3d.view.Viewport3D;
&gt;&gt;&gt; import org.papervision3d.render.BasicRenderEngine;
&gt;&gt;&gt; import org.papervision3d.cameras.Camera3D;
&gt;&gt;&gt; import org.papervision3d.scenes.Scene3D;
&gt;&gt;&gt; import org.papervision3d.events.FileLoadEvent;
&gt;&gt;&gt; import org.papervision3d.view.stats.StatsView;
&gt;&gt;&gt;
&gt;&gt;&gt; public var SCENE:Scene3D = new Scene3D();
&gt;&gt;&gt; public var CAMERA:Camera3D = new Camera3D();
&gt;&gt;&gt; public var RENDERER:BasicRenderEngine = new BasicRenderEngine();
&gt;&gt;&gt; public var VIEWPORT:Viewport3D = new Viewport3D(640,480);
&gt;&gt;&gt; public var COLLADA:DAE;
&gt;&gt;&gt; public var MATERIALS:MaterialsList = new MaterialsList();
&gt;&gt;&gt; public var COLOR_MAT:ColorMaterial = new ColorMaterial();
&gt;&gt;&gt;
&gt;&gt;&gt; public function init():void
&gt;&gt;&gt; {
&gt;&gt;&gt;         //add the viewport to the stage
&gt;&gt;&gt;         stage.addChild(VIEWPORT);
&gt;&gt;&gt;         //set up material list
&gt;&gt;&gt;         MATERIALS.addMaterial(COLOR_MAT, 'TextureName');
&gt;&gt;&gt;         //create collada
&gt;&gt;&gt;         loadCollada();
&gt;&gt;&gt;         //set up mouse event to unload the current dae and load another
&gt;&gt;&gt;         stage.addEventListener(MouseEvent.CLICK, unloadCollada);
&gt;&gt;&gt; }
&gt;&gt;&gt;
&gt;&gt;&gt; public function loadCollada():void
&gt;&gt;&gt; {
&gt;&gt;&gt;         COLLADA = new DAE();
&gt;&gt;&gt;         COLLADA.load('dae/yourFileName.dae', MATERIALS);
&gt;&gt;&gt;         COLLADA.addEventListener(FileLoadEvent.LOAD_COMPLETE, daeLoaded);
&gt;&gt;&gt;         COLLADA.scale = 3500;
&gt;&gt;&gt; }
&gt;&gt;&gt;
&gt;&gt;&gt; public function unloadCollada(e:MouseEvent):void
&gt;&gt;&gt; {
&gt;&gt;&gt;         //remove the collada from the scene and set everything to null
&gt;&gt;&gt;         SCENE.removeChild(COLLADA);
&gt;&gt;&gt;         COLLADA.geometry = null;
&gt;&gt;&gt;         COLLADA.materials = null;
&gt;&gt;&gt;         COLLADA.document = null;
&gt;&gt;&gt;         COLLADA = null;
&gt;&gt;&gt;         //load the collada again
&gt;&gt;&gt;         loadCollada();
&gt;&gt;&gt; }
&gt;&gt;&gt;
&gt;&gt;&gt; public function daeLoaded(e:FileLoadEvent):void
&gt;&gt;&gt; {
&gt;&gt;&gt;         //remove event listener
&gt;&gt;&gt;         COLLADA.removeEventListener(FileLoadEvent.LOAD_COMPLETE, daeLoaded);
&gt;&gt;&gt;         //add collada to the scene
&gt;&gt;&gt;         SCENE.addChild(COLLADA);
&gt;&gt;&gt;         //set up and start render timer
&gt;&gt;&gt;         var TIMER:Timer = new Timer(20);
&gt;&gt;&gt;         TIMER.addEventListener(TimerEvent.TIMER, renderScene);
&gt;&gt;&gt;         TIMER.start();
&gt;&gt;&gt; }                        
&gt;&gt;&gt;
&gt;&gt;&gt; public function renderScene(e:TimerEvent):void
&gt;&gt;&gt; {
&gt;&gt;&gt;         RENDERER.renderScene(SCENE, CAMERA, VIEWPORT);
&gt;&gt;&gt; }
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; If you were to compile this, you'd see that the memory keeps building
&gt;&gt;&gt; every time you click the stage. If I replaced the DAE with a Cube,
&gt;&gt;&gt; there isn't any memory leak. Any ideas?
&gt;&gt;&gt;
&gt;&gt;&gt; Ryan
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; -------------- next part --------------
&gt;&gt;&gt; An HTML attachment was scrubbed...
&gt;&gt;&gt; URL: &lt;http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090505/ad73caa8/attachment-0001.html 
&gt;&gt;&gt; &gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ------------------------------
&gt;&gt;&gt;
&gt;&gt;&gt; Message: 2
&gt;&gt;&gt; Date: Wed, 6 May 2009 13:42:15 +0530
&gt;&gt;&gt; From: Sandeep Menon &lt;sandeepmenon24@gmail.com&gt;
&gt;&gt;&gt; Subject: [Papervision3D] Detect Mouse Events in a viewport
&gt;&gt;&gt; To: papervision3d@osflash.org
&gt;&gt;&gt; Message-ID:
&gt;&gt;&gt;         &lt;6895a11c0905060112w4ccb1ad8ib472bfcb16ece8d6@mail.gmail.com&gt;
&gt;&gt;&gt; Content-Type: text/plain; charset="iso-8859-1"
&gt;&gt;&gt;
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; I've got the following setup in a papervision application I'm  
&gt;&gt;&gt; working on.
&gt;&gt;&gt;
&gt;&gt;&gt;   - A Viewport3D object, that's added as a child of a
&gt;&gt;&gt;   - UIComponent, that in turn is added as a child to a
&gt;&gt;&gt;   - A custom object, that's derived from a Canvas class
&gt;&gt;&gt;
&gt;&gt;&gt; What i want to do is detect any mouse events that happen within the
&gt;&gt;&gt; viewport, not just those that occur over any scene objects.
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; How would I go about handling this, by adding the listener to the  
&gt;&gt;&gt; viewport
&gt;&gt;&gt; itself or even the UIcomponent object, rather than dealing with it  
&gt;&gt;&gt; at the
&gt;&gt;&gt; Canvas-derived object?
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks,
&gt;&gt;&gt; sm
&gt;&gt;&gt; -------------- next part --------------
&gt;&gt;&gt; An HTML attachment was scrubbed...
&gt;&gt;&gt; URL: &lt;http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090506/21c11565/attachment-0001.html 
&gt;&gt;&gt; &gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ------------------------------
&gt;&gt;&gt;
&gt;&gt;&gt; Message: 3
&gt;&gt;&gt; Date: Wed, 6 May 2009 01:48:08 -0700
&gt;&gt;&gt; From: Steve D &lt;kruass@gmail.com&gt;
&gt;&gt;&gt; Subject: Re: [Papervision3D] Detect Mouse Events in a viewport
&gt;&gt;&gt; To: papervision3d@osflash.org
&gt;&gt;&gt; Message-ID:
&gt;&gt;&gt;         &lt;f66fee040905060148q17a8235amcd0fba5e8e90a835@mail.gmail.com&gt;
&gt;&gt;&gt; Content-Type: text/plain; charset="iso-8859-1"
&gt;&gt;&gt;
&gt;&gt;&gt; If the UIComponent or Canvas have solid backgrounds, and they will  
&gt;&gt;&gt; detect a
&gt;&gt;&gt; hittest.  You can put your event listener on them.  If they are  
&gt;&gt;&gt; transparent
&gt;&gt;&gt; (as the viewport is), then you'll need the listener on the scene,  
&gt;&gt;&gt; and do
&gt;&gt;&gt; bounds checking in the event handler method.
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; On Wed, May 6, 2009 at 1:12 AM, Sandeep Menon &lt;sandeepmenon24@gmail.com 
&gt;&gt;&gt; &gt;wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I've got the following setup in a papervision application I'm  
&gt;&gt;&gt;&gt; working on.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;   - A Viewport3D object, that's added as a child of a
&gt;&gt;&gt;&gt;   - UIComponent, that in turn is added as a child to a
&gt;&gt;&gt;&gt;   - A custom object, that's derived from a Canvas class
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; What i want to do is detect any mouse events that happen within the
&gt;&gt;&gt;&gt; viewport, not just those that occur over any scene objects.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; How would I go about handling this, by adding the listener to the  
&gt;&gt;&gt;&gt; viewport
&gt;&gt;&gt;&gt; itself or even the UIcomponent object, rather than dealing with it  
&gt;&gt;&gt;&gt; at the
&gt;&gt;&gt;&gt; Canvas-derived object?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;&gt; sm
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt; Papervision3D mailing list
&gt;&gt;&gt;&gt; Papervision3D@osflash.org
&gt;&gt;&gt;&gt; http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt; -------------- next part --------------
&gt;&gt;&gt; An HTML attachment was scrubbed...
&gt;&gt;&gt; URL: &lt;http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090506/cef39964/attachment-0001.html 
&gt;&gt;&gt; &gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ------------------------------
&gt;&gt;&gt;
&gt;&gt;&gt; Message: 4
&gt;&gt;&gt; Date: Wed, 6 May 2009 14:48:24 +0530
&gt;&gt;&gt; From: Sandeep Menon &lt;sandeepmenon24@gmail.com&gt;
&gt;&gt;&gt; Subject: Re: [Papervision3D] Detect Mouse Events in a viewport
&gt;&gt;&gt; To: papervision3d@osflash.org
&gt;&gt;&gt; Message-ID:
&gt;&gt;&gt;         &lt;6895a11c0905060218r1bc3179cxa2f0746f7406494d@mail.gmail.com&gt;
&gt;&gt;&gt; Content-Type: text/plain; charset="iso-8859-1"
&gt;&gt;&gt;
&gt;&gt;&gt; so, if i have a viewport that's embedded in a UIComponent of the  
&gt;&gt;&gt; same size,
&gt;&gt;&gt; being transparent, I'll need to add the listener to the scene object
&gt;&gt;&gt; instead?
&gt;&gt;&gt;
&gt;&gt;&gt; On Wed, May 6, 2009 at 2:18 PM, Steve D &lt;kruass@gmail.com&gt; wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; If the UIComponent or Canvas have solid backgrounds, and they will  
&gt;&gt;&gt;&gt; detect a
&gt;&gt;&gt;&gt; hittest.  You can put your event listener on them.  If they are  
&gt;&gt;&gt;&gt; transparent
&gt;&gt;&gt;&gt; (as the viewport is), then you'll need the listener on the scene,  
&gt;&gt;&gt;&gt; and do
&gt;&gt;&gt;&gt; bounds checking in the event handler method.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Wed, May 6, 2009 at 1:12 AM, Sandeep Menon &lt;sandeepmenon24@gmail.com 
&gt;&gt;&gt;&gt; &gt;wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I've got the following setup in a papervision application I'm  
&gt;&gt;&gt;&gt;&gt; working on.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;   - A Viewport3D object, that's added as a child of a
&gt;&gt;&gt;&gt;&gt;   - UIComponent, that in turn is added as a child to a
&gt;&gt;&gt;&gt;&gt;   - A custom object, that's derived from a Canvas class
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; What i want to do is detect any mouse events that happen within the
&gt;&gt;&gt;&gt;&gt; viewport, not just those that occur over any scene objects.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; How would I go about handling this, by adding the listener to the  
&gt;&gt;&gt;&gt;&gt; viewport
&gt;&gt;&gt;&gt;&gt; itself or even the UIcomponent object, rather than dealing with  
&gt;&gt;&gt;&gt;&gt; it at the
&gt;&gt;&gt;&gt;&gt; Canvas-derived object?
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;&gt;&gt; sm
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt;&gt; Papervision3D mailing list
&gt;&gt;&gt;&gt;&gt; Papervision3D@osflash.org
&gt;&gt;&gt;&gt;&gt; http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt; Papervision3D mailing list
&gt;&gt;&gt;&gt; Papervision3D@osflash.org
&gt;&gt;&gt;&gt; http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt; -------------- next part --------------
&gt;&gt;&gt; An HTML attachment was scrubbed...
&gt;&gt;&gt; URL: &lt;http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090506/c10d90cf/attachment-0001.html 
&gt;&gt;&gt; &gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ------------------------------
&gt;&gt;&gt;
&gt;&gt;&gt; Message: 5
&gt;&gt;&gt; Date: Wed, 6 May 2009 02:30:42 -0700
&gt;&gt;&gt; From: Steve D &lt;kruass@gmail.com&gt;
&gt;&gt;&gt; Subject: Re: [Papervision3D] Detect Mouse Events in a viewport
&gt;&gt;&gt; To: papervision3d@osflash.org
&gt;&gt;&gt; Message-ID:
&gt;&gt;&gt;         &lt;f66fee040905060230k15d8f44boe69540b79c7485c@mail.gmail.com&gt;
&gt;&gt;&gt; Content-Type: text/plain; charset="iso-8859-1"
&gt;&gt;&gt;
&gt;&gt;&gt; A Flash displayobject wont detect mouse events on any part of it  
&gt;&gt;&gt; that is
&gt;&gt;&gt; 100% transparent.  The typical way to get around this is to put the  
&gt;&gt;&gt; mouse
&gt;&gt;&gt; event on the scene, and then manually figure out if the mouse event  
&gt;&gt;&gt; should
&gt;&gt;&gt; be affecting the transparent displayobject.
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; On Wed, May 6, 2009 at 2:18 AM, Sandeep Menon &lt;sandeepmenon24@gmail.com 
&gt;&gt;&gt; &gt;wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; so, if i have a viewport that's embedded in a UIComponent of the  
&gt;&gt;&gt;&gt; same size,
&gt;&gt;&gt;&gt; being transparent, I'll need to add the listener to the scene object
&gt;&gt;&gt;&gt; instead?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Wed, May 6, 2009 at 2:18 PM, Steve D &lt;kruass@gmail.com&gt; wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; If the UIComponent or Canvas have solid backgrounds, and they  
&gt;&gt;&gt;&gt;&gt; will detect
&gt;&gt;&gt;&gt;&gt; a hittest.  You can put your event listener on them.  If they are
&gt;&gt;&gt;&gt;&gt; transparent (as the viewport is), then you'll need the listener  
&gt;&gt;&gt;&gt;&gt; on the
&gt;&gt;&gt;&gt;&gt; scene, and do bounds checking in the event handler method.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Wed, May 6, 2009 at 1:12 AM, Sandeep Menon &lt;sandeepmenon24@gmail.com 
&gt;&gt;&gt;&gt;&gt; &gt;wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; I've got the following setup in a papervision application I'm  
&gt;&gt;&gt;&gt;&gt;&gt; working on.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;   - A Viewport3D object, that's added as a child of a
&gt;&gt;&gt;&gt;&gt;&gt;   - UIComponent, that in turn is added as a child to a
&gt;&gt;&gt;&gt;&gt;&gt;   - A custom object, that's derived from a Canvas class
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; What i want to do is detect any mouse events that happen within  
&gt;&gt;&gt;&gt;&gt;&gt; the
&gt;&gt;&gt;&gt;&gt;&gt; viewport, not just those that occur over any scene objects.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; How would I go about handling this, by adding the listener to the
&gt;&gt;&gt;&gt;&gt;&gt; viewport itself or even the UIcomponent object, rather than  
&gt;&gt;&gt;&gt;&gt;&gt; dealing with it
&gt;&gt;&gt;&gt;&gt;&gt; at the Canvas-derived object?
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;&gt;&gt;&gt; sm
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt;&gt;&gt; Papervision3D mailing list
&gt;&gt;&gt;&gt;&gt;&gt; Papervision3D@osflash.org
&gt;&gt;&gt;&gt;&gt;&gt; http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt;&gt; Papervision3D mailing list
&gt;&gt;&gt;&gt;&gt; Papervision3D@osflash.org
&gt;&gt;&gt;&gt;&gt; http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt; Papervision3D mailing list
&gt;&gt;&gt;&gt; Papervision3D@osflash.org
&gt;&gt;&gt;&gt; http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt; -------------- next part --------------
&gt;&gt;&gt; An HTML attachment was scrubbed...
&gt;&gt;&gt; URL: &lt;http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090506/7fce51ff/attachment.html 
&gt;&gt;&gt; &gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ------------------------------
&gt;&gt;&gt;
&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt; Papervision3D mailing list
&gt;&gt;&gt; Papervision3D@osflash.org
&gt;&gt;&gt; http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; End of Papervision3D Digest, Vol 32, Issue 11
&gt;&gt;&gt; *********************************************
&gt;&gt;
&gt;&gt; Gwilym Johnston
&gt;&gt;
&gt;&gt; e: me@gwilym.com
&gt;&gt; w: www.gwilym.com
&gt;&gt; m: + 44 (0) 7595 727365
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; Papervision3D mailing list
&gt;&gt; Papervision3D@osflash.org
&gt;&gt; http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;
&gt;-------------- next part --------------
&gt;An HTML attachment was scrubbed...
&gt;URL: &lt;http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090506/1a9b67b3/attachment.html&gt;
&gt;
&gt;------------------------------
&gt;
&gt;_______________________________________________
&gt;Papervision3D mailing list
&gt;Papervision3D@osflash.org
&gt;http://osflash.org/mailman/listinfo/papervision3d_osflash.org
&gt;
&gt;
&gt;End of Papervision3D Digest, Vol 32, Issue 13
&gt;*********************************************
</PRE><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://512.mail.163.com/mailstamp/stamp/dz/activity.do?from=footer">穿越地震带 纪念汶川地震一周年</a>
</span>