Hello, I have a 3Ds file that I'm importing into CS3. I want to change
one of the objects in the 3DS and change the material to a
MovieMaterial. I've sort of got it working but, I can't get the
material to be interactive...
This is the code I have so far
material = new MovieMaterial(new InteractiveMap(), {interactive:true,
smooth:true});
max:Object3DLoader;
max = Max3DS.load("globe.3DS");
max.addOnSuccess(onLoaderSuccess);
view.scene.addChild(max);
private function onLoaderSuccess(event:LoaderEvent):void {
var globeMatData = max.handle.materialLibrary.getMaterial("mainSkin");
globeMatData.material = material
globeMatData.materialType = "MovieMaterial"
max.handle.scale(2);
}
Can someone point me in the right direction?
Cheers