下面這個類用來實現鼠標移動等的漸變效果:
假設有一個按鈕
<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;