yes you can. just do var myclass:MyClass = new Class(); myclass.meshes[5].material = myMovieMaterial; _scene.addChild(myclass);
to retrieve the right mesh from index: the panel hierarchy in Prefab has same order as meshes in as3 class if you have named a specific mesh in prefab, you can also loop over the meshes array and check if class.meshes[index].name == "thenameIWant" --> apply material Fabrice On Mar 6, 2011, at 3:00 PM, Erkan wrote: > Hello Eveybody, > > First of all thanks for great engine you made. i'm developing my > personal web site with away3d and planing to extend into virtual > world here is link, > > http://www.erkansirin.com/ > > my question is; > > i'm building 3d models in Maya and export to obj and then covert to > AS3 class with prefab everting is perfect but i'm using a lot of > moviematerial for interactive objects as you can see in my web site. > is there any way to use those interactive materials on native maya > models which i converted to AS3 class? i tried to modify class files > but i cant get any result so far. > > > Thank you very much for your advices. > >
