Link to home
Start Free TrialLog in
Avatar of NeverEndingFlashStories
NeverEndingFlashStories

asked on

Adding movieclip filter using AS without overriding or removing existing designer filters

Hi,

I have a movieClip that already has a drop shadow filter applied to it through the designer. When the user has a mouse over, i want to add a mouse over listener that adds highlights to the movieclip. The code below correctly applies the new filter, but i cant seem to make it apply it while keeping the existing filter.
And when i do a MouseOut event, i lose both filters.

How do i add or remove the new filter without affecting the existing ones? thanks in advance :)
function applyfilter11q1(e:MouseEvent) {
	if (e.target.parent.name == "ex11q1a" || e.target.parent.name == "ex11q1b" || e.target.parent.name == "ex11q1c"){
		trace(e.target.parent.filters);
		//e.target.parent.filters.push(filter11q1);
		e.target.parent.filters = [filter11q1];
	}
}
 
function removefilter11q1(e:MouseEvent) {
	e.target.parent.filters = null;
}

Open in new window

Avatar of NeverEndingFlashStories
NeverEndingFlashStories

ASKER

I guess...cant be done?
ASKER CERTIFIED SOLUTION
Avatar of bilderbach
bilderbach

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial