Hello. I am working on a basic feature but am having trouble with the logic needed.
I have five buttons, and when you click on Three, it is set to active as well as the previous two. When you click on Five all five are active. Then when you click back on Two, only the first two are active.
So what I have in mind is taking the ID of the selected button and reference that in a for loop to set the previous children to active and the following children as inactive.
My hierarchy is as follows:
Datamarks Block
- DatamarksOne
- Checkbox
- DatamarkTwo
- Checkbox
…
So if I click on the Third datamark, how can I find the other children checkboxes to adjust their alpha property?
for (var x : int = 0; x < value; x++) {
}