Hey!
I am having a rather annoying problem!! Basically my code is triggering the event when it definitely should not be…
Here is my layout:
Node container - holds all my Sprites and has a MOUSE_OVER (<works fine) and a MOUSE_OUT / ROLL_OUT (<neither of which work)
Sprites in Node container - contain text + images but have a Shape hitbox on the top layer meaning there should be no confusion!
Basically, I check to see if anything rolls over my node container with MOUSE_OVER which triggers correctly and allows me to target which sprite the user has rolled over.
However, when you move the mouse over the sprites (but not outside!) if constantly triggers my MOUSE_OUT and ROLL_OUT events, it makes no difference which one I use…
This is is really frustrating and I can not think of even an ugly work around in my code to solve this, it would be nice to fix it and add it to my knowledge later.
EDIT : Actually the MOUSE_OVER triggers as soon as the OUT event has triggered incorrectly.
Thanks for reading/understand and helping,
Dan ^,^
EDIT 2 : AHH!! I Found the cause of the problem!!!
Basically I have a custom cursor and this is the root of the problem, it thinks I am rolling over the cursor and then out constantly… OK so how can I Ignore my mouse cursor image? So it doesn’t think I am rolling out all the time…?
Thanks again…
Dan
EDIT 3 : FIXED
mouseEnabled = false;
mouseChildren = false;
Thanks for the help kirupa… gets my brain juices flowing… slowly but surely…