views:

42

answers:

1

I have 6 instances of a moiveClip. when one is clicked, i need to write a function that affects all other instances of the movieClip, and not affect the one being clicked.

What is the most efficient way of doing this? Im thinking something to do with event class for sure.aa

+3  A: 

Put a single event handler on all of them and do something like this:

private function onClickMovieClip(event:MouseEvent):void
{
    for (/*run through your clips*/)
    {
        if (event.target != /*current clip*/)
        {
            doSomething();
        }
    }
}
Sean