[Papervision3D] Changing cube front MovieMaterial?

John Lindquist johnlindquist at gmail.com
Fri Dec 26 23:54:50 PST 2008


replaceMaterialByName works with a MovieMaterial on a Cube for me:

http://pv3d.org/2008/12/26/switching-a-moviematerial-on-the-face-of-a-cube-replacematerialbyname/

Maybe something in there will help?

On Fri, Dec 26, 2008 at 10:36 AM, |Mirko <msabljic at gmail.com> wrote:
>
> Hi,
>
> I tried to change cube's front material which is the MovieMaterial with the
> following code:
>
> cube.replaceMaterialByName(new MovieMaterial(my_mc), "front");
>
> But nothing happened, however if i try the same way to set the ColorMaterial
> as "front" material then it works:
>
> cube.replaceMaterialByName(new ColorMaterial(0xFFFFFF), "front");
>
> Can someone explain it to me how to change MovieMaterial and why this method
> works with ColorMaterial but not with MovieMaterial?
>
>
> Thank in advance,
> best regards
> --
> View this message in context: http://www.nabble.com/Changing-cube-front-MovieMaterial--tp21176268p21176268.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>



More information about the Papervision3D mailing list