I imagine this is a fairly simple question, but I don’t know the exact terminology for what I am trying to accomplish so searching has proven fruitless.
Basically I have a table (let’s call it card). card has various keys such as card.name and card.id and card.image. These are easy enough to access when dealing with the table (card), but when one of these keys is passed in (for example card.image) how do you “backtrace” to access other information about card? I can think of a few very cumbersome workarounds but I am hoping there is a good way that I am unaware of.
As a further analogy to explain what I am thinking: imagine the table (card) as a directory that includes subdirectories (name, id, image), I am trying to understand how you move backwards to the main card directory once you are already in a subdirectory.
The closest terminology I could think of here is that of parent/child, however when I tried using parent to backtrace it did not work (this was on a card.image, which is a display object and serves as the event.target during a touch event, so I think it started searching for characteristics that didn’t exist in a display group). I would like to be able to (by using that event.target) access the name of the card to which that image belongs for example.