obj = Collada.load(bodyParts[0], {loader:Object3DLoader, material: new
ColorMaterial(0xAA0000)});
obj.addEventListener(LoaderEvent.LOAD_SUCCESS, waks);
obj.addEventListener(ProgressEvent.PROGRESS, woks);
public function waks(e:Event):void {
e.target.handle.visible = true;
(e.target.handle as ObjectContainer3D).children[0].material = new
ColorMaterial(0x0000CC);
}
public function woks(pe:ProgressEvent):void{
var perc = Math.ceil((pe.bytesLoaded / pe.bytesTotal)*100);
pe.target.handle.visible = false;
}
why doesnt this work?