
-----------------------------------
bwong
Sat Jun 04, 2011 8:32 pm

Mouse Commands: Mouse.ButtonWait and Mouse.Where
-----------------------------------
What is it you are trying to achieve?
I am making a menu, where when users scroll over an object, the name attributed to the object will appear, and when the user scrolls away from the object, it will go back to black.  at the same time, I want to make it so that when the user clicks on it, the object will link to somewhere else.


What is the problem you are having?
I am able to have both of these functions work independently, but when I try to implement them together, it does not work.

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
All variables have been declared beforehand.


%%%MAIN MENU%%%
%This creates the on-mouse-over effect
loop
Mouse.Where (mousex, mousey, mousedown)
if mousex >= 584 and mousex = 100 and mousey = 170 and mousex = 265 and mousey = 364 and mousex = 289 and mousey = 256 and mousex = 399 and mousey = 066 and mousex = 357 and mousey = 584 and mousex = 100 and mousey = 170 and mousex = 265 and mousey = 364 and mousex = 289 and mousey = 256 and mousex = 399 and mousey = 066 and mousex = 357 and mousey = 584 and mousex = 100 and mousey = 170 and mousex = 265 and mousey = 364 and mousex = 289 and mousey = 256 and mousex = 399 and mousey = 066 and mousex = 357 and mousey = 584 and mousex = 100 and mousey = 170 and mousex = 265 and mousey = 364 and mousex = 289 and mousey = 256 and mousex = 399 and mousey = 066 and mousex = 357 and mousey 