Hey Dave

to use the mouseEnabled property on 3d objects, you first of all need to be
listening for mouseevent3d events, rather than standard mouseevent events.

secondly, you need to make sure you are calling view.render() on every
frame, otherwise the 3d mouse events won't get triggered properly

finally, the event.target property ids automatically set by the
eventdispatcher in flash, so is no use for our purposes. the mouseevent3d
object has a custom property "object", which stands in for the correct
target object that registered a 3d mouse event. have a look in the
mouseevent3d object inside the events package for a complete list of
properties returned by a 3d mouse event

cheers

Rob


On Thu, Sep 17, 2009 at 8:51 PM, Dave Stewart <
[email protected]> wrote:

>
> I'm figuring that perhaps this is to do with me using a standard event
> listener, so none of the mouseEnabled stuff is getting registering.
>
> Even when I set the name property of the 3D objects, the name isn't
> reported in the event.target either.
>
> All I really want to do is set most of the objects in the scene to be
> non-interactive, so I can compare event.target to this.stage and thus
> deduce that nothing important was clicked on.
>
> Is there another way to do this is Away 3D ?




-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to