New Mouse Events for Away3D 4.0
It’s about time I posted something useful. Hopefully this will be of use to budding 3D application developers everywhere π
I’ve extended the Away3D Mouse3DManager and MouseEvent3D classes to accept the right click and middle click events recently added to Flash Player (Novemeber 2011, I think)
Remember to update your compiler and target Flash Player 11.2 or later. I had to do a bit of mucking about in FlashDevelop to get it working myself, which may well explain why it’s not yet in the official Away3d library. Here’s a really crazy, wild demo to show it works…
(Click image to open demo. Click/Scroll on ball Β to see events triggered)
And here are the files…
Mouse3DManager.as
MouseEvent3D.as
Usage Example:
ExtraMouseEvents.as
Enjoy!
25th June 2012 @ 10:36 pm
Thank You so much! π This is just I'm waiting for in Away3D 4 Gold release. But this classes means to much time saving
26th June 2012 @ 12:33 pm
Glad to be of service :O)
Remember to check your users have at least FP 11.2 installed.
10th September 2012 @ 7:51 pm
Hi, the events dispath when I click and move
mouse near the sphere, not on it.
Is it possible to handle interactions more exact?
(I'm using FP 12.4)