Dynamic variable names?

That’s…pretty complex, Allen. Hopefully somebody can get inspired from it. :slight_smile:

As to my puzzle, I’ve found some behavior I can’t explain.

  1. As mentioned, the function variable myTab returns tabGroup.
  2. tabGroup contains three groups, so you could say it’s like this: (I didn’t declare it this way, but this is the order)
    a. tabGroup[1] = buttonsGroup
    b. tabGroup[2] = buttonsOverlay
    c. tabGroup[3] = buttonsTitle
  3. If I add an event listener to “myTab”…

Results:
myTab[1] acts like tabGroup.buttonsGroup.button[1]
myTab[2] acts like tabGroup.buttonsOverlay.overlay[1]
myTab[3] acts like tabGroup.buttonsTitle.title[1]

Each group has 5 objects within, so I must be missing some sort of syntax that is causing it to pick the first one out of the subgroup… [import]uid: 41884 topic_id: 15029 reply_id: 55972[/import]