[Tweener] PV3d Tweening ColorMaterial.fillColor

Kenneth Weiss kweiss at chrome-fusion.com
Sun Nov 16 06:49:43 PST 2008


Just  discovered Tweener recently and I love it.
I would like to tween the fillColor of a ColorMaterial.

The following gets tweened but not correctly because it interpolates  
the hex value.
Tweener.addTween(cube.materials.getMaterialByName("front"),{fillColor: 
0xe12188, time:1.0, transition:"linear"});

I assume that I need to do something with :
Tweener.registerSpecialPropertySplitter("_color", _color_splitter);

And somehow:
Tweener.registerSpecialProperty("fillColor",		_ fillColor_get,		_  
fillColor_set);

And I know it works for "_color" in a normal MovieClip, so I'm sure  
it's possible.

I was wondering if someone has already been through this and wouldn't  
mind sharing code.

Cheers,

K

Kenneth Weiss
kweiss at chrome-fusion.com
mobile: +353 861755033
home: +353 12824038
web: www.chrome-fusion.com
music: www.myspace.com/shorttermproject

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20081116/dab1c6b3/attachment.htm>


More information about the Tweener mailing list