Is there a way to generalize an id for an onEvent?
Say I have 3 buttons, named button1, button2, and button3, and they are all doing something similar.
Is there a way I could do something like indicate the button number somewhere else and then do an onEvent like:
onEvent (“button”+num, …)
where var num contains a number 1, 2, or 3
The idea is to try and avoid having 30 onEvents instructions if they are all doing the pretty much the same thing.
Right now, I think the answer is no, but maybe someone else has an idea.