开发者

AS2 TweenLite : using TintPlugin

开发者 https://www.devze.com 2022-12-19 04:05 出处:网络
I have a problem with the TweenLite Tint Plugin in AS2. Is th开发者_开发知识库ere a way to decrease the alpha color ?

I have a problem with the TweenLite Tint Plugin in AS2. Is th开发者_开发知识库ere a way to decrease the alpha color ?

For instance :

TweenLite.to ( mc, 1, { tint : 0x586AB4, blurFilter : { blurX : BLUR_FILTER, blurY : BLUR_FILTER }, dropShadowFilter : { blurX : BLUR_X, blurY : BLUR_Y, distance : SHADOW_DISTANCE, strength : SHADOW_STRENGTH, angle : SHADOW_ANGLE } } );

The "alpha" attribute must not be use because it only modifies the global movieclip "alpha".

Thanks in advance.


TintPlugin.as seems to ignore alpha.

Do you mean the tint's alpha ? as in the amount of tint ?

Would you get the result you want by using the ColorTransformPlugin with tint and tintAmount ?

e.g.

TweenLite.to ( mc, 1, { colorTransform:{tint:0x586AB4, tintAmount:0.5},blurFilter : { blurX : BLUR_FILTER, blurY : BLUR_FILTER }, dropShadowFilter : { blurX : BLUR_X, blurY : BLUR_Y, distance : SHADOW_DISTANCE, strength : SHADOW_STRENGTH, angle : SHADOW_ANGLE } } );
0

精彩评论

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

关注公众号