Disable handcursor problem

Hi,

I’m trying to apply this script to a button but am asked to use an “on handler”. I’ve tried different ones but none seem to work. Would anybody know what I’m missing? Thanks.


anticlickthrough_btn.useHandCursor = false;