I need to collect data from a 3D object when a roll over event occurs(event.target.variable). I have tried adding a child object, storing the data in the name, even adding a public variable to either the mesh or object .as. All have been rejected. Can anyone give the appropriate method for this, it must be very common, I’ve just can’t find it in the docs. Thanks for any reply.
How can I pass data through a mouse event?Software: Away3D 4.x |
||
|
||
SharpEdge, Member
Posted: 17 September 2013 07:59 AM Total Posts: 94 [ # 1 ] It’s simple, you should extend Mesh Class suppose we call it CustomMesh and add to it all your custom properties. Then when you catch the event:
protected function onRollover(ev:MouseEvent3D):void |
||
|
||
|
||
martiniDave, Newbie
Posted: 17 September 2013 06:54 PM Total Posts: 9 [ # 4 ] Thank you very much, the extra works perfect for me! |