i stored 8 mc’s in an array an i put them on the stage.
now I want to apply to these mc’s a blur effect.
My problem is that i don’t know how to apply for every mc the blur effect by clicking on it.
So for example I have all the mc’s on the stage and if I click on one of them the clicked one should have the blur effect and so on.
How to apply the filter to the mc’s?
Thank you for you time
i stored 8 mc’s in an array an i put them on the stage.
Share
You can loop through the mc’s array and add event listeners on each of them:
and the event handler:
of course, if you wanted to have only one blurred mc at a time, you should keep a reference to it and remove blur once another mc is clicked: