Solved it: (your Object3D instance).session.layer returns pretty much of a display object (sprite), so you can use whichever hittestpoint you want. I'm so damn smart (and exausted).
On Nov 17, 4:20 pm, sapphiriotic <[email protected]> wrote: > I'm trying to do a very simple thing: drag some sprite1 over another > sprite2 containing dae model and away3d stuff. > On the very moment when I stop dragging the sprite I need to check > whether mouse is over a _particular child_ of dae model. > > I tried: > 1) Tried checking view.mouseObject and view.mouseMaterial on the > moment of stopDrag (dae itself listens for various MouseEvent3D) - no > luck, because mouse is still considered to be over the sprite1. Ok, > fair. > 2) removing sprite1 on the moment of stopDrag, listening for > Event.REMOVED_FROM_STAGE and checking for view.mouseObject and > view.mouseMaterial again - still getting null. > 3) listening for Event.REMOVED_FROM_STAGE and firing a forced > fireMouseEvent(MouseEvent.ROLL_OVER, mouseX, mouseY) - works > partially. It determines the needed child but if mouse is somewhat > like 5 px close to its borders (or even closer), i get null again. > That's not the way I want it to work. > > It should be something simple, but I'm missing it. Any help would be > deeply appreciated. > > P.S. Away3D 3.6.0 (not Lite)
