Para usar en Flash 8
================================================== =====
import flash.filters.GlowFilter;
var fr:GlowFilter = new GlowFilter(0xCC0011, 100, 2, 2, 5, 2, false, false);
//boton_btn es el nombre de instancia del objeto
boton_btn.onRollOver = function() {
this.onEnterFrame = function() {
this.filters = [fr];
if (fr.blurX < 10) {
fr.blurX++;
fr.blurY = fr.blurX;
}
}
}
boton_btn.onRollOut = function() {
this.onEnterFrame = function() {
this.filters = [fr];
if (fr.blurX > 3) {
fr.blurX--;
fr.blurY--;
} else {
delete this.onEnterFrame;
}
}
}