public function replaceMaterial(material:Material, newMaterial:Material , 
clearPreviousMaterial:Boolean = true) : void 

http://groups.google.com/group/away3d-dev/browse_thread/thread/19eeef735bbccc87/8fafa5d042cc673f?lnk=gst&q=replaceMaterial#8fafa5d042cc673f


Fabrice




On May 28, 2010, at 7:38 AM, Micheal MacLean wrote:

> Ok, after much experimenting I have had no success. So instead of
> trying to embed images I would just mess around a bit with changing
> the BSP level's material (it is all one mesh). I could not even do
> that!
> 
> There seems to be no method under the tree called "changeMaterial"
> either, so I don't really know how I can follow your advice,
> Fabrice... :(
> 
> Could you provide a quick couple lines of code showing an example of
> changing a BSP mesh to having a ColorMaterial, WireColorMaterial, or
> something like that?
> 
> Thanks again!
> 
> -Micheal

Reply via email to