下面这个类用来实现鼠标移动等的渐变效果:
假设有一个按钮
<mx:Buttton id = "button1" label = "Comfirm"/>
new GlowTween(this["button1"], 0x00FFFF);
private var mGlowFilter:GlowFilter = new GlowFilter(0xFFFF00, 1, 16, 16, 2, 2);
this["button1"].filters = [mGlowFilter];
this["button1"].filters = null;