Hi Cyril !
" implement differente action on each room/material "
well if you won't change the material, why not use the mesh as
reference for your actions ??
Object3D(yourMesh).addOnMouseOver(action);
function action(e:MouseEvent3D):void
{
var id:String = e.target.name;
switch(id){
case "horseAss":
kickit();
break;
case " LauraBushAss"
kickItTwice();
break;
case " CarlaAss"
kickItTen();
break;
default:
trace(e.target.name);
}
}
if not, I know that a materialData (including name property) do exist,
but don't know how to access it... take a look at the API !