I have a display object called with
local background = display.newImage("ccbg.png")
Later in my code, I want to reference this object with something along the line of
if activeChar.target == background then
I noticed this does not work, corona wont recognize the name “background”
when I use this to find out what exactly is happening
print(activeChar.target)
This is what is printed in the console “table: 0x7fd5034d6d60”
I remember reading that display objects are basically table, but I was wondering if it was possible to name it instead of having that random sting of characters for the name