Great but I think you can usematerialLibrary.getMaterial(materialname)
in order not to use statements  ;)
On Fri, Jan 22, 2010 at 3:24 PM, Erokare <[email protected]> wrote:

> thanks it worked fine, i just added this :
>
> if (materialData.name == "my_texture1") {
>   materialData.material = causticsMaterial;
> }
>
>
>
>
> On 22 jan, 12:52, Michael Iv <[email protected]> wrote:
> > You should target material name as you named it in 3dsMax
> >
> >
> >
> > On Fri, Jan 22, 2010 at 12:40 PM, Erokare <[email protected]> wrote:
> > > Hi there, I was just wondering if we can apply a moviematerial on a
> > > Mas3DS mesh ?
> >
> > > i tried this :
> > > var materialMovie:MovieClip = new causticsMovie() as MovieClip;
> > > var causticsMaterial:MovieMaterial = new MovieMaterial
> > > ( materialMovie );
> >
> > > Mesh(model.getChildByName("NGon01")).material = causticsMaterial;
> >
> > > but i got a 1009 error.... is there a way to do it and how ?
> >
> > > thanks
> >
> > --
> > Michael Ivanov ,Programmer
> > Neurotech Solutions Ltd.
> > Flex|Flash |Air |Games|OS|
> > Tel-0526237969
> > [email protected]
> > [email protected]
>



-- 
Michael Ivanov ,Programmer
Neurotech Solutions Ltd.
Flex|Flash |Air |Games|OS|
Tel-0526237969
[email protected]
[email protected]

Reply via email to