Adding an eventListener to an image in a table

Guess you can say he is making a 3D array?

@cybersparkstudios thanks that did the work

Last question, is it possible to change the text using its id?

Yes, using an if statement. 

if textObject.id == "text" then textObject.text = "New Text, wow" end

But, using the line inside of the if statement instead of using the whole if statement would be more ideal in some cases.

I did try that in my code but the one that change is the last “text” that has been created. I am using loop to create image and text and make them the same ids but like I said the one that change is the last “text” created by the loop. In short, how can I change text of my “text” when they have the same name but different ids?