My screens are stored into groups and I am trying to make my code as clean as possible. For any given screen, I have newButton or other objects stored in ScreenName[ScreenName.numChildren] so I also store certain values such as ScreenName[ScreenName.numChildren].Tap = “OnTapDoThis”. I would like to link thru my group and where I find a .Tap value I want to do ScreenName[i]:addEventListener(“tap” ScreenName[i].Tap) I know that is not doable but is their something like an eval or something else that would allow to get this result?
Thank you