on(release) {
var filter = (new flash.filters.GlowFilter());
filter["color"] = random(16000000);
yuanjian.filters = [filter];
var i = 1;
var j = 0.1;
filter.blurX = filter.blurX+i;
filter.blurY = filter.blurY+i;
filter["color"] = random(16000000);
filter.alpha = filter.alpha+j;
yuanjian.filters = [filter];
}
这段代码写在按钮元件yuanjian上,想要改变自身的发光滤镜
但测试时单击按钮始终未能执行,望指点...
紫衣仙女