Away3dLite face material error

Software: Away3D Lite

redhotbeani, Newbie
Posted: 13 July 2011 11:38 AM   Total Posts: 4

I just started with Away3dlite and ran into a problem. I wanted to change each face of a cube (give it a different material) but I got an error message when running this code:

var c:Cube6 = new Cube6();
...
var 
faces:Vector.<Face> = c.faces;
for 
each (var f:Face in faces{
 f
.material = new ColorMaterial();

Luckily I found this discussion
http://groups.google.com/group/away3d-dev/browse_thread/thread/a0213303fdaab368
with the advice to use the branche instead of the trunk
http://away3d.googlecode.com/svn/branches/lite/libs

I downloaded the branche and now my problems are solved.

Since the discussion on Google groups is almost a year old, can somebody please move the corrected brance-code to the trunk?

thanks in advance,
Arie

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X