我使用辉光效果以及带有 tween lite 的比例效果,并且比例工作正常,直到我添加了辉光。现在,如果我将鼠标悬停在错误的方式上,它将导致影片剪辑在发光缩放和非发光未缩放影片剪辑之间闪烁/抽搐。
twitter.addEventListener(MouseEvent.MOUSE_OVER, scaleTwitter);
function scaleTwitter(event: MouseEvent):void {
TweenLite.to(twitter, .1, {scaleX:1.2, scaleY:1.2, ease:Linear.easeNone});
TweenMax.to(twitter, 1, {glowFilter:{color:0xFFFFFF, alpha:1, blurX:30, blurY:30}});
twitter.addEventListener(MouseEvent.MOUSE_OUT, unscaleTwitter);
function unscaleTwitter(event: MouseEvent):void {
TweenLite.to(twitter, .4, {scaleX:1, scaleY:1, ease:Linear.easeNone});
TweenMax.to(twitter, 1, {glowFilter:{color:0xFFFFFF, alpha:0, blurX:30, blurY:30}});
}
}