Mixed
10-24-2007, 02:56 PM
Denis,
I found something interesting.
Let's say I have defined a spot, and with various gfx at mouse over and mouse out. When I click on it, it should load a panorama and hide itself.
The first thing I've noticed, was that at onClick it loads the pano, then disappears ok. But I am also with the mouse over it. So when I move the mouse out, it triggers the onOut event.
Then, I did that onClick to change it's button status to 0, with buttonMode=0. This makes the spot to be unresponsive to the mouse, right? But the thing is... it still does the onOut event once, when I move the mouse out of the spot.
So this is not right. If I disable the buttonmode, even if I'm over the button, then the onOut event should not be triggered!
A possible workaround is to change the onOut behaviour to none, after I disable the button. It works, but I also make the button active again at some point and I need it's original onOut event. And when I have many buttons like this, it's awkward to define the events again.
I hope I was clear enough, if not, then remember that if I disable a button, then all it's events should be disabled immediately, even if my mouse is over the button.
I found something interesting.
Let's say I have defined a spot, and with various gfx at mouse over and mouse out. When I click on it, it should load a panorama and hide itself.
The first thing I've noticed, was that at onClick it loads the pano, then disappears ok. But I am also with the mouse over it. So when I move the mouse out, it triggers the onOut event.
Then, I did that onClick to change it's button status to 0, with buttonMode=0. This makes the spot to be unresponsive to the mouse, right? But the thing is... it still does the onOut event once, when I move the mouse out of the spot.
So this is not right. If I disable the buttonmode, even if I'm over the button, then the onOut event should not be triggered!
A possible workaround is to change the onOut behaviour to none, after I disable the button. It works, but I also make the button active again at some point and I need it's original onOut event. And when I have many buttons like this, it's awkward to define the events again.
I hope I was clear enough, if not, then remember that if I disable a button, then all it's events should be disabled immediately, even if my mouse is over the button.