Game Development Community

What is 'onMouseEnter'?

by Richard Skala · in iTorque 2D · 04/22/2010 (9:23 pm) · 1 replies

This is just a question out of curiosity -- What exactly is 'onMouseEnter' for? Also, what does 'onMouseLeave' do?

#1
04/22/2010 (9:43 pm)
I used the command in Flash and I think it is in javascript (html).

It means the mouse has entered the same area (x1,y1,x2,y2) as an object. When the mouse hovers over the object, then do the function.

The onMouseLeave means the mouse left the ojbects area (x1,y1,x2,y2) and will run the function.