Hi, since I've updated by away3D repository to 3.5 I can no longer
swap a material at runtime.

Here is the code I'm using:

var material:MovieMaterial = new MovieMaterial(_eCardMC);
material.interactive = true;
material.smooth = true;

_painting._frame.cubeMaterials.front = material

--- _frame is a 'Cube' and is created elsewhere:

var cubeMat:CubeMaterialsData = new
CubeMaterialsData({front:_image,back:bFront,top:bSides,bottom:bSides,left:leftMat,right:rightMat});
_frame = new Cube( { width:paintingWidth , height:paintingHeight,
depth:3, name:'cube3D', faces:cubeMat} )


Is there a new function like redraw or something I'm missing?

Thanks in advance!

Reply via email to