[Papervision3D] Changing cube front MovieMaterial?
|Mirko
msabljic at gmail.com
Sat Dec 27 04:31:39 PST 2008
Thanks a lot John for your reply and example, really appreciated. I did the
same thing as in your example, however i found out that there was a problem
with my movie clip used in MovieMaterial so now it works :)
Best regards,
Mirko
Lindquist wrote:
>
> 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
>>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
--
View this message in context: http://www.nabble.com/Changing-cube-front-MovieMaterial--tp21176268p21183747.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list