I’m having button (class that extends Sprite). In the middle of button there’s an icon (Sprite with attached icon). Sometimes (not always!) when mouse enters button, MouseEvent.MOUSE_OVER is not thrown. When mouse enters icon MouseEvent.MOUSE_OVER is always thrown. What is the reason of such strange behaviour?
I’m having button (class that extends Sprite ). In the middle of button there’s
Share
I solved the problem by adding a
hitClipsprite (with alpha aet to 0) tobuttonsprite. As it written in livedocsSo to get
MouseEvent.MOUSE_OVERone need to have something under mouse (e.g. transparent clip)