|
-
setProperty problems
The script is not realizing the value of "menuh"&(counter) (ex: menuh1 = 14). Any idea why?
This is loaded first:
// 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 UP:
counter = menu_num;
while (Number(counter)<3) {
counter = Number(counter)+1;
setProperty("/menu"&(counter), _y, getProperty ( "/menu"&(counter), _y )-"menuh"&(counter));
}
This brings the category DOWN:
counter = menu_num;
while (Number(counter)<3) {
counter = Number(counter)+1;
setProperty("/menu"&(counter), _y, getProperty ( "/menu"&(counter), _y )+"menuh"&(counter));
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|