By saving your materials before asign them, you can change their properties by 
accessing them directly.

If you want to access multiple meshes into the ObjectContainer, loop over the 
container.children
If the type is Mesh, read the name (if you have given a name to the mesh and 
wanna compare before changing properties) and access the material to modify its 
properties

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.

Fabrice


On Apr 23, 2010, at 5:43 PM, am wrote:

> Still having problems with my extruded text.
> Now i put the TextField3D and the generated extrusion into a
> ObjectContainer3D,
> to be able to move it as one.
> 
> Now i want to add interaction.
> 
> function onSceneMouseUp(e:MouseEvent3D):void {
>       if (e.object is Mesh) {
>               var mesh:Mesh = e.object as Mesh;
>               mesh.material = new WireColorMaterial();
>       }
> }
> 
> But it only changes the material of the front, but not of the
> extrusion.
> 
> How can i change all the materials?
> 
> btw: i still couldn“t find out about my other material issue with
> extruded text: 
> http://groups.google.com/group/away3d-dev/browse_thread/thread/fc0719de8021b5fc

Reply via email to