You should use CubeMaterialsData();
For example :

var cube:Cube = new Cube();
CubeMat = new CubeMaterialsData();
                SideMat = new ColorMaterial(0x000000);
                SideMat.alpha = 0.5;
                CubeMat.front = new MovieMaterial(new mc());
                CubeMat.back = new ColorMaterial(0xCCCCCC);
                CubeMat.bottom = SideMat;
                CubeMat.top = SideMat;
                CubeMat.left = SideMat;
                CubeMat.right = SideMat;
                cube.cubeMaterials = CubeMat;


On Nov 19, 5:36 pm, Páll Zoltán <[email protected]> wrote:
> new Cube({ faces: { top: material1, bottom: material2, front:
> material3, back: material4, left: material5, right: material6}});
>
> Z.
>
> On 19 November 2010 15:21, NickBee <[email protected]> wrote:
>
> > I picked up the book on Away3D. It did a great job of explaining the
> > basics but I did not see an example of the above question. What’s the
> > easiest way to put different materials on each side of a cube
> > primitive?
>
> > I understand the concept of using 6 planes in a 3dObj to build a cube
> > but I'm just wondering if there is another way to do this.
>
> > Thanks!

Reply via email to