Glow Effect with GreenSock
Glow effect with GreenSock plugin in action script 3, download the latest files from the greensock site and copy the com folder from the zip package. I think the plugin is in com, otherwise make it in com folder.
glowFilter : Object – To apply a GlowFilter, pass an object with one or more of the following properties: alpha, blurX, blurY, color, strength, quality, inner, knockout, remove, addFilter, index
Download Source Code
Syntax:
// TweenMax.to(target:Object, duration:Number, vars:Object)
TweenMax.to(mc, 1, {glowFilter:{color:0xFFFFFF, alpha:5, blurX:50, blurY:50}});
Step1:
Create a movie clip named “circle” (I used this name for the demo) or else.

Step2:
Set the document class as ‘com.Glow’

Setp3:
Create an action script file in the com folder and name it as Glow.as (which is same as in Document class)
Setp4:
Add Event Listener to the movieclip “circle” for the MOUSE_OVER and MOUSE_OUT events.
circle.addEventListener(MouseEvent.MOUSE_OVER, mc_mouseOver); circle.addEventListener(MouseEvent.MOUSE_OUT, mc_mouseOut);
Function for the particular events.
function mc_mouseOver(evt:MouseEvent):void {
TweenMax.to(circle, 1, {glowFilter:{color:0xFFFFFF, alpha:5, blurX:50, blurY:50}});
}
function mc_mouseOut(evt:MouseEvent):void {
TweenMax.to(circle, 1, {glowFilter:{color:0xCCCCCC, alpha:0, blurX:10, blurY:10, remove:true}});
}
Setp5:
Run your fla by pressing Ctrl+Enter
Glow.as File
package com{
import com.greensock.*;
import com.greensock.easing.*;
import flash.events.*;
import flash.display.MovieClip;
public class Glow extends MovieClip {
function Glow():void {
circle.addEventListener(MouseEvent.MOUSE_OVER, mc_mouseOver);
circle.addEventListener(MouseEvent.MOUSE_OUT, mc_mouseOut);
}
function mc_mouseOver(evt:MouseEvent):void {
TweenMax.to(circle, 1, {glowFilter:{color:0xFFFFFF, alpha:5, blurX:50, blurY:50}});
}
function mc_mouseOut(evt:MouseEvent):void {
TweenMax.to(circle, 1, {glowFilter:{color:0xCCCCCC, alpha:0, blurX:10, blurY:10, remove:true}});
}
}
}

If I want to add another filter to the same mouse_over/mouse_out event how do I go about doing that?
For example, I want the object to glow but also change color.
Please help.
what kind of color change you want, you meant to change the color of the glow? or movie clip?
@Yassine: I think this will work fine.
TweenMax.fromTo(circle, 1, {glowFilter:{color:0xFFFFFF, alpha:5, blurX:50, blurY:50}}, {glowFilter:{color:0xFF0000, alpha:5, blurX:50, blurY:50}});
Thanks, really usefull
You are welcome
This is why I recommend this site.
http://www.besthotel-for-you.net/barcelona/tag/tb/
Hello, for some reason when I place your RSS feed into my feed reader, it doesn’t work. Can you give me the RSS URL just to make certain I’m using the right one?
http://thebestwordpressplugins.com
http://feeds.feedburner.com/tutorboyarticles/
this is working fine.. try this once again…
When you are in uncomfortable position and have got no cash to go out from that point, you would need to receive the business loans. Just because it would aid you for sure. I get secured loan every single year and feel good because of this.