if its a vector material, just tween colors using rbg and set color
value to material
if its a bitmapdata, just tween factors and apply colortransform
accordingly
if you prerender, use animatedbitmapMaterial or indeed moviematerial
Fabrice
On Dec 11, 2009, at 1:42 PM, Pierre Karadia wrote:
Dear All,
Is there a way to transform the color / material of an object. I can
switch materials quite easily but would like a transition..
I have been playing the Tweener to get the job done but _brightness
does not seem to be feature of materials.BitmapMaterial..
what is the easiest way, is it to cheat and do all the transitions
in a SWF and then just apply the material as a MovieMaterial and
then control the movie use play and stop()...
or can I use a Tweener class to crossfade the material? ie transform
the bitmapData
??
any thoughts
PK