How use Filter in ActionScript 3.0
How use Filter in ActionScript 3.0
var gf:GlowFilter = new GlowFilter(0xff0000,.5,4,4,3,3); var bf:BlurFilter = new BlurFilter(4,4,3); hero_mc.filters = [gf,bf]; // Instance Name of Movie Clip is (hero_mc) * Filter Randomly Change */ addEventListener(Event.ENTER_FRAME , loop); function loop(e:Event){ bf.blurX = Math.random()*10; bf.blurY = Math.random()*10; gf.color = Math.random()*0xffffff; hero_mc.filters = [gf,bf]; } View Demo

Leave a Reply

Your email address will not be published. Required fields are marked *