ADD MOUSE EVENT TO MESH 3D

Software: Away3D 4.x

parele, Jr. Member
Posted: 16 March 2013 02:46 AM   Total Posts: 43

weird, i cant seem to add a MouseEvent3D to a cloned mesh, EXAMPLE:

var ITEMS_MESH:Mesh mesh.getMesh(item);// Item is the vars for the mesh  in MAX
 
var newObject:Mesh Mesh(ITEMS_MESH.clone());
 
newObject.addEventListener(MouseEvent3D.MOUSE_OVER,ITEM_INFO);
 
ItemsArray.unshift(newObject);
 
_container.addChild(newObject);


function 
ITEM_INFO(e:MouseEvent3D):void{
 trace
("foundYou");

the mesh appears fine, then when i click the mesh it doesnt fire the (ITEM INFO)

   

aeki, Member
Posted: 16 March 2013 06:38 AM   Total Posts: 73   [ # 1 ]

Did you try to set mouseEnable to true?

   

parele, Jr. Member
Posted: 16 March 2013 08:39 AM   Total Posts: 43   [ # 2 ]

lol, lol i forgot smile
Thanks mate

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X