I’m using the ROLL_OVER and ROLL_OUT mouse events to change the look of my navigation buttons, and it works fine.
But when I click on one of those buttons, I want to give it a ‘disabled’ look until the action it triggers has been completed. After that, depending on if the mouse is still hovering over that button, I want it to look ‘hovered over’ or ‘normal’.
The problem is that ROLL_OVER only gets triggered when the mouse cursor enters the object. So right now, the button remains ‘disabled’ until I move the cursor out of the object and then back over it again.
Is there a way of knowing over if the mouse is hovering a given object at a given moment?
Ok, I’ll take a look at that. Thanks.
you use the pointer position class and then set up your objects as diffent classes so when the mouse hits one it does something and the other something else , and if neither are hit, remain normal, is that what you mean ? its something like this “below”, you need to get the actionscript right but heres the english.
var = button ;
var = other_object_you _want_something_to_happen ;
var mousepointer = GET mousepointer_position ;
if mousepointer_postion-x/y= “object1 coordinates” {do this}
if mousepointer postion-x/y= “other_oject coordinates” {do this instead}
else {do the normal thing its supose to do}
This should at least give you a guide as to where you need to be going next. I am sure theres a load of other ways to do it but I have to do my bit on the forum as I have posted too many and not tried to answer enough. I love it when people help me you see. I’m sure this sould put you on the right trac. Leave the onmouse events and use mouse pointer position class instead is the way to go here.