I have a variable defined as…
local layerBack={file,obj}
and this works fine - layerBack.obj:removeSelf()
but this…
local layerMain={file={},obj={},xpos={},width={},ypos={},height={},flip={}}
with the same concept - layerMain.obj[1]:removeSelf()
results in an error…
attempt to call method ‘removeSelf’ (a nil value)
Any thoughts as to what I’m doing wrong and how to clean up memory for my layerMain table?
Thanks.
[import]uid: 10789 topic_id: 8923 reply_id: 308923[/import]