all groups > flash actionscript > march 2007 >
You're in the

flash actionscript

group:

disabling all movie clips that are on lower levels


disabling all movie clips that are on lower levels vrish88
3/31/2007 8:35:54 PM
flash actionscript:
Hello

I have a movie clip that pops up over all other movie clips. But it is still
possible to interact with these movie clips that are beneath the mc that has
popped up. Is there any way to disable all of the movie clips that are beneath
the one that popped up?

thanks
Re: disabling all movie clips that are on lower levels abeall
3/31/2007 10:06:36 PM
Typically the way to do this is simply create a large invisible MovieClip which
covers everything, and give it a an interactive event. I often use:
on(rollOver){
useHandCursor = false;
}

This way not only does it steal interaction from anything below it, it makes
it so the cursor doesn't turn into a hand making the user think there's
something clickable.

You could also make a loop which checks getDepth() and if it's below a
specified depth, set enabled = false, but there's really no reason in doing
that.
AddThis Social Bookmark Button