Hi,

We are trying to change the materials of a Cube at runtime.


In short:

var MOVIEMaterial:BitmapFileMaterial = new BitmapFileMaterial(xxxxx);
var faceMatMOVIE:CubeMaterialsData = new CubeMaterialsData
({left:MOVIEMaterial,top:MOVIEMaterial,bottom:MOVIEMaterial,right:MOVIEMaterial,front:MOVIEMaterial,back:MOVIEMaterial});

cubeObject.cubeMaterials = faceMatMOVIE;

...but nothing happens and the onCubeMaterialChange is not triggered.


Also, if we use the same logic to instanciate the Cube it also doesn't
apply the materials.
If we apply directly the CubeMaterialsData in the constructor of the
Cube then it works (faces:faceMatMOVIE).

Can anyone give us a hint?

Thanks a lot.
JR

Reply via email to