No. If you want to change a property of the material, access and alter.
(MyMaterial as WireMaterial).wireColor = 0x00FF00
If you want to change the material type, keep track of the mesh.
Mymeshes[i].material = someNewMaterial;


Sent from an iPhone without Flash

On Apr 24, 2010, at 12:46, am <[email protected]> wrote:

thanks for your help, fabrice!

On 23 Apr., 21:46, Fabrice3D <[email protected]> wrote:
By saving your materials before asign them, you can change their properties by accessing them directly.

you mean like this:
var material1 = new WireColorMaterial();
mesh.material = material1;
material1 = new WireColorMaterial();

this should change all materials of objects which have material1
assigned automatically?



In the 'tools' package, there a few classes using recursive code to access the children if you want to parse a bit deeper that you might want to look at.


where can i find the tools package?


--
Subscription settings: http://groups.google.com/group/away3d-dev/subscribe?hl=en

Reply via email to