THanks again Ben but i have 2 observation: 1- i must use "var target:Mesh=e.object as Mesh;" cause when i do: var target:Mesh=e.target as Mesh; trace(target) it return "null"...i don't understand why
2- i want to change the color on a collada that i clone. When i use your code, all my cloned collada change, not only the overed one.... thanks On 20 juil, 19:53, ben <[email protected]> wrote: > private function change(e:MouseEvent3D):void { > var target:Mesh=e.target as Mesh; > for(j=0;j<target.faces.length-1;j++) > { > var fd:Face = target.faces[j] as Face; > fd.material = yourMaterial; > } > }
