Help: need to ignore mouse clicks

hi guys I need a some help plz :ponder:

in action script, I need a way to** ignore any mouse clicks by the user **, until I finish running a function, and then undo this ignore function.

Why: until my animation stops, so the user won’t activate some other animation, there for I want to ignore any clicks he might do.

help would be very appreciated at this point :wt: