Is there a way I can have multiple If else statements in one Action Script or button?
I have 24 buttons I would like to turn green when it is pushed - and have any other one that is green turn back to grey.
I would like to make this happen without putting:
WDCustomScript,1,0,255,0
WDCustomScript,2,128,128,128
WDCustomScript,3,128,128,128
WDCustomScript,4,128,128,128
...
What I'd like is to use a variable:
if ButtonClicked = 1
{
WDCustomScriptTint,1,0,255,0
}
else
{
WDCustomScriptTint,1,128,128,128
}
and button click 2 and so on...
The first one in the script works, but as soon as I add the second or third one, it executes each if argument - it turns all of the buttons green...
Do I need to add:
esle
fi
at the end of each argument? Would that work with WD? (I don't have it open right now)...
I hope I can get a quick answer on this! This show is tomorrow - it is all working... just trying to make the GUI more user friendly without going crazy with scripting....
OR is there another way I'm not thinking of to do this?
Cheers,