# button.setClickHandler(“subjectSelectHandler”);

**URL:** <https://forum.kirupa.com/t/button-setclickhandler-subjectselecthandler/49714>\
**Category:** Uncategorized\
**Created:** [April 26, 2004, 3:03am UTC](https://forum.kirupa.com/t/button-setclickhandler-subjectselecthandler/49714 "2004-04-26T03:03:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lacuna](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Lacuna](https://forum.kirupa.com/u/Lacuna)\
**Post date:** [April 26, 2004, 3:03am UTC](https://forum.kirupa.com/t/button-setclickhandler-subjectselecthandler/49714/1 "2004-04-26T03:03:44Z")

</div>

What i am TRYING to do is set the Click Handler of a 2004mx button to pull up a function called ‘setData’ …

button.setClickHandler(“setData”); doesnt seem to function in mx 2004… i was googiling and found that it seems i should be replacing it with a listener… something like button.addListener(setData);

but it still doesnt call the function…

what am i doing wrong??

~ Seretha :love:
