[AS-2] Tweener and glow filters

Hey guys, can anyone help me figure out why this isn’t doing what I want it to do.

I want Tweener to tween off this glow effect onRollOut, and tween it back in onRollOver. I can get it to work with a blur effect but not the glow effect.


import flash.filters.GlowFilter;
import caurina.transitions.Tweener;

var glow = new GlowFilter(0xFFFFFF, 100, 5, 5, 3, 250);
enter.filters = [glow];

enter.onRollOver = function(){
   Tweener.addTween(this , {_glow_alpha:100, time:.5, transition:"easeInExpo"});
};

enter.onRollOut = function(){
   Tweener.addTween(this, {_glow_alpha:0, time:.5, transition:"easeInExpo"});
};

add;

import caurina.transitions.properties.FilterShortcuts;
FilterShortcuts.init();

Still the same problem. Is there anything else it could be?

Oh.

Should be _Glow_alpha actually…

Or you can just create a blurfilter object on a movieclip …then…

Tweener.addTween(nameoffilter , {_blurX…:100, time:.5, transition:“easeInExpo”});
Tweener.addTween(nameoffilter , {_blurY…:100, time:.5, transition:“easeInExpo”});

the primitive way :slight_smile:

[quote=sekasi;2333908]Oh.

Should be _Glow_alpha actually…[/quote]

Tried that too and wasn’t working either. I will just have to keep playing around with it I suppose.

Thanks you guys.