I have created a movie clip named mc1 in flash and add the glow effect dynamically on Relase event of MC1, then It is working properly but when I load a image through code in mc1 then the glow effect is not working on clicking mc1. The code is as below
import flash.filters.GlowFilter;
mc1.loadMovie("logo.jpg");
mc1.onRelease = function() {
var filter:GlowFilter = new GlowFilter(0xc20000, .8, 16, 16, 5, 5, false, false);
var filterArray:Array = new Array();
filterArray.push(filter);
mc1.filters = filterArray;
};
Can anybody help. I want to add image through code in mc. and after clicking on mc it will show the glow effect.
import flash.filters.GlowFilter;
mc1.loadMovie("logo.jpg");
mc1.onRelease = function() {
var filter:GlowFilter = new GlowFilter(0xc20000, .8, 16, 16, 5, 5, false, false);
var filterArray:Array = new Array();
filterArray.push(filter);
mc1.filters = filterArray;
};
Can anybody help. I want to add image through code in mc. and after clicking on mc it will show the glow effect.