# Overriding a MouseEvent.CLICK

**URL:** <https://forum.kirupa.com/t/overriding-a-mouseevent-click/250698>\
**Category:** flash\
**Created:** [January 31, 2008, 5:57pm UTC](https://forum.kirupa.com/t/overriding-a-mouseevent-click/250698 "2008-01-31T17:57:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quackor](https://avatars.discourse-cdn.com/v4/letter/q/ac91a4/32.png) [@quackor](https://forum.kirupa.com/u/quackor)\
**Post date:** [January 31, 2008, 5:57pm UTC](https://forum.kirupa.com/t/overriding-a-mouseevent-click/250698/1 "2008-01-31T17:57:38Z")

</div>

Even though the title of this thread mentions overriding, there might be another way to accomplish this.

I would like my custom functionality to happen each time a MouseEvent.CLICK is fired (or captured). This is specifically for tracking clicks on my page. I could just call a tracking function each time a CLICK happens, but if possible - it would be way cooler to have it happen automatically (also I wouldn’t have to remember to make that extra function call every time I want to track), and also I wouldn’t have to go back and fix all the CLICKs that were coded in without tracking.

So if someone knows how would this be done, I’d really appreciate some pointers.
