Something else that I found that might be helpful is if you are
working with your objects in different classes like I am, you need to
set your events up a little differently.
For example, if I have a function in my object class to return the
name of that particular object:

myObject.addEventListener(MouseEvent3D.MOUSE_DOWN, clickTarget);

private function clickTarget(event:MouseEvent3D):void
{
        var targetName:String = event.currentTarget.getName());
}

event.currentTarget   gets that particular object that you click on
Hope someone finds that helpful

On Jun 14, 12:13 am, Vamp4L <[email protected]> wrote:
> Nice, I've been trying to do the same thing...detecting mouse events
> on a 3d object that is.
> I was just using  MouseEvent and couldnt figure out why it wasnt
> working.
> Didn't realize there was a separate event for 3d objects.  Thanks!  :)
>
> On Jun 13, 10:31 pm, ChrisMcIntosh <[email protected]>
> wrote:
>
> > Okay To answer my own question you can setup onClick events for the
> > mouse using the MouseEvent3D class provided by Away3D.  I think i am
> > also starting to get the movement down.  Once complete with this
> > process I will sit down and write out a couple of tutorials on how i
> > did these things.  I would like to know for sure im doing it correctly
> > though ;)
>
> > On Jun 13, 7:44 pm, ChrisMcIntosh <[email protected]>
> > wrote:
>
> > > I am new to away3d and was curious how to handle detecting mouse
> > > clicks on 3d Objects.  If there is any tutorials on this it would be
> > > great.
>
> > > Also another issue that i am having is smooth movement of the camera,
> > > if you have any good resources on that it would be great.

Reply via email to