The script is not realizing the value of "menuh"&(counter) (ex: menuh1 = 14). Any idea why?
This is loaded first:
This brings the category UP:Quote:
// Set up variable to keep track of which menu is being clicked.
menu_num = "0";
menuh1 = "14";
menuh2 = "195";
menuh3 = "245";
stop();
This brings the category DOWN:Quote:
counter = menu_num;
while (Number(counter)<3) {
counter = Number(counter)+1;
setProperty("/menu"&(counter), _y, getProperty ( "/menu"&(counter), _y )-"menuh"&(counter));
}
Quote:
counter = menu_num;
while (Number(counter)<3) {
counter = Number(counter)+1;
setProperty("/menu"&(counter), _y, getProperty ( "/menu"&(counter), _y )+"menuh"&(counter));
}
