开发者

Tweenmax : is it possible to tween a sprite linestyle?

开发者 https://www.devze.com 2022-12-22 04:18 出处:网络
I\'m using TweenMax to make all tweens, fade in a projet. Now my question is : is it possible to tween only linestyle开发者_Go百科 from a Sprite ?

I'm using TweenMax to make all tweens, fade in a projet. Now my question is : is it possible to tween only linestyle开发者_Go百科 from a Sprite ?

For example, something like that :

TweenMax.to ( my_sprite.graphics.lineStyle, 0.5, { tint : 0xFF0000 } );

Thank you.


From what I have seen, if you wish to alpha the stroke and the fill separately, you need to redraw the shape.

ie. this post - http://www.actionscript.org/forums/showthread.php3?t=219378

Alternatively, depending on the complexity of the Sprite, you can just make the outline its own Sprite and tween it interdependently.

0

精彩评论

暂无评论...
验证码 换一张
取 消