Removing Event

Hi,

i have a ProgressEvent inside another function that is triggered on MouseEvent.CLICK.
how can i remove the progressEvent outSide that function …

Thanks in advance