Jump to content

Call function on Button Mouseover


Zampano
 Share

Recommended Posts

Hey there!
I'm extending the button class right now and I was wondering if it is possible to call a custom function when the mouse hovers over the button, since it already does the checking to change the pointer. 

MyButton.prototype._pointerOverHandler = function() {
	console.log("check");
};

This doesn't do the trick, I guess because _pointerOverHandler is a protected internal function.

If there is no better way then to check for mouseover myself in the buttons update cycle, then so be it, just tell me - I just want to make sure I don't miss anything. :)

Any help is greatly appreciated! Thank you

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...