I got the materials working by giving them the right names (in my
example "red" and "grey") in 3dsMax in the Material/Map Browser, and
export as Collada. Then draw a rectangle in Flash and give it the
color you want and create a MovieClip of it. Rightclick on it in the
library and click properties. Check "Export for ActionScript" and
"Export in frame 1". Give it a class name. Then add this code to your
ActionScript file:

// imports
import away3d.materials.*;

// initialization

var redMat:redMaterial = new redMaterial(); // redMaterial is the
classname of the MovieClip
var greyMat:greyMaterial = new greyMaterial();
loader = Collada.load("model.dae", { materials:{        red:{bitmap:redMat},
grey:{bitmap:greyMat}}});

This solved the material problem for me.

Reply via email to