Hi,
I have this code:
for i = 1,#imageSet do
local p = display.newImage(imageSet[i])
g:insert§
p:addEventListener( “touch”, listener )
end
But terminal say me Runtime error assertion failed! on the line where I do addEventListener.
g is a display.newGroup()
and listener is defined as:
function listener(event)
print (“HIT”)
return true
end
Any possible solution?
thanks.
David.
[import]uid: 44539 topic_id: 8586 reply_id: 308586[/import]