Again I found the answer before having a reply! Solution is following: var chups = clickedObject.children[0];
var chups2 = chups.children[0]; chups2.material = new ColorMaterial(0xFF00FF); where clickedObject is the ObjectContainer3D On Feb 25, 3:56 pm, Konstantinos Anatolitis <[email protected]> wrote: > Hi there! > > I'm using the following to load my .obj files in my scene: > > loader3D = Obj.load(file, {material:itemMaterial}); > loader3D.addOnSuccess(onSuccess); > > private function onSuccess(evt:Event):void { > item = loader3D.handle as Object3D; > > } > > I then want to change the object's material through s combobox. > How do I do that? How do I access the material property and to which? > To loader3D or item? > > Thanks
