# \[AS-2\] Tweener and glow filters

**URL:** <https://forum.kirupa.com/t/as-2-tweener-and-glow-filters/261797>\
**Category:** flash\
**Created:** [May 30, 2008, 10:39pm UTC](https://forum.kirupa.com/t/as-2-tweener-and-glow-filters/261797 "2008-05-30T22:39:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![switchBack](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@switchBack](https://forum.kirupa.com/u/switchBack)\
**Post date:** [May 30, 2008, 10:39pm UTC](https://forum.kirupa.com/t/as-2-tweener-and-glow-filters/261797/1 "2008-05-30T22:39:17Z")

</div>

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.

```auto

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"});
};

```

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [May 30, 2008, 10:58pm UTC](https://forum.kirupa.com/t/as-2-tweener-and-glow-filters/261797/2 "2008-05-30T22:58:35Z")

</div>

add;

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

---

<div class="post-metadata">

**Author:** ![switchBack](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@switchBack](https://forum.kirupa.com/u/switchBack)\
**Post date:** [May 30, 2008, 11:46pm UTC](https://forum.kirupa.com/t/as-2-tweener-and-glow-filters/261797/3 "2008-05-30T23:46:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [May 31, 2008, 12:41am UTC](https://forum.kirupa.com/t/as-2-tweener-and-glow-filters/261797/4 "2008-05-31T00:41:57Z")

</div>

Oh.

Should be \_Glow\_alpha actually…

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [June 1, 2008, 6:54pm UTC](https://forum.kirupa.com/t/as-2-tweener-and-glow-filters/261797/5 "2008-06-01T18:54:30Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![switchBack](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@switchBack](https://forum.kirupa.com/u/switchBack)\
**Post date:** [June 2, 2008, 7:16pm UTC](https://forum.kirupa.com/t/as-2-tweener-and-glow-filters/261797/6 "2008-06-02T19:16:48Z")

</div>

[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.
