Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6752317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:01:49+00:00 2026-05-26T13:01:49+00:00

i stored 8 mc’s in an array an i put them on the stage.

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:01:50+00:00Added an answer on May 26, 2026 at 1:01 pm

    You can loop through the mc’s array and add event listeners on each of them:

    var mcArrayLength:int = mcArray.length();
    for (var i:int = 0; i < mcArrayLength; i++) {
      var mc:MovieClip = mcArray[i] as MovieClip;
      mc.addEventListener(MouseEvent.CLICK, onMcClick);
    }
    

    and the event handler:

    function onMcClick(e:MouseEvent):void
    {
      var clickedMc:MovieClip = e.currentTarget as MovieClip;
      clickedMc.filters = [myBlurFilter];
    }
    

    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:

    var currentlyClickedMc:MovieClip;
    
    function onMcClick(e:MouseEvent):void
    {
      var clickedMc:MovieClip = e.currentTarget as MovieClip;
      clickedMc.filters = [myBlurFilter];
      if (currentlyClickedMc) currentlyClickedMc.filters = [];
      currentlyClickedMc = clickedMc;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I stored some objects with key in memcached. But now I want to see
This is stored procedure that worked on earlier version of mysql. Now, I have
I've written a stored proc that will do an update if a record exists,
Conventional wisdom states that stored procedures are always faster. So, since they're always faster,
Scenario: A stored procedure receives from code a DateTime with, let's say DateTime.Now value,
The stored procedure builds without any problem. The purpose of this is to take
I stored a object in viewstate on Page. Now when i access the same
I have a stored proc (SS2008) that takes a couple int ids and needs
This stored procedure does not save the data, it seems to be a problem
MySQL Stored Procedure Programming by Guy Harrison in the Triggers chapter says that triggers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.