Conditional onrelease?

is it possible to only allow an onrelease event on a movieclip if a certain condition has been met?
i don’t think you can place an if condition around an onRelease…can you?

Or perhaps can you disable a movie clip’s onrelease property until a certain event has occurred?