This tutorial will teach you how to create and apply an advanced glow flash filter on some object, using action script. This is very useful filter which you can use it wherever you like.
Step 1Create a new Flash Document and draw any object or import any picture on the stage.
Step 2Select the object or picture that you have just created or imported, and press F8 on the keyborad (Convert to Symbol), to convert it into a Movie Clip. Look at the picture below!
Step 3While your new made Movie Clip is still selected, open the Properties Panel (Ctrl+F3) and under
type: box_mc

Step 4
After that, click on the first frame of layer1 and paste this script:
box_mc.filters = [new flash.filters.GlowFilter()];
var dir:Number = 1;
box_mc.blur = 10;
box_mc.onEnterFrame = function() {
box_mc.blur += dir;
if ((box_mc.blur>=30) || (box_mc.blur<=10)) {
dir *= -1;
}
var filter_array:Array = box_mc.filters;
filter_array[0].blurX = box_mc.blur;
filter_array[0].blurY = box_mc.blur;
box_mc.filters = filter_array;
};
Test your Movie (Ctrl+Enter).
We're done!
Bye!
Download source file (.fla)