I'm trying to apply/remove a glow filter to a movie clip on a MOUSE_OVER/MOUSE_OUT event.
Basically when I hover over a movie clip I want the glow to animate on, and then animate back off when I mouse out.
How would I achieve this?
Thanks
I'm trying to apply/remove a glow filter to a movie clip on a MOUSE_OVER/MOUSE_OUT event.
Basically when I hover over a movie clip I want the glow to animate on, and then animate back off when I mouse out.
How would I achieve this?
Thanks
private var glowArray:Array = [new GlowFilter()];
mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOver);
mc.addEventListener(MouseEvent.MOUSE_OUT, mouseOut);
private function mouseOver(e:MouseEvent):void
{
mc.filters = glowArray;
}
private function mouseOut(e:MouseEvent):void
{
mc.filters = [];
}
its very simple if you're using a tween engine like tweener http://hosted.zeh.com.br/tweener/docs/en-us/properties/FilterShortcuts.html