Hi,
is it possible to add an event listener to a vector line?
The follwing does not work:
function lineTouch()
print(“Line touched”)
end
local myLine = display.newLine(50, 50, 50, 150)
myLine.width = 12
myLine:setColor(0, 180, 180)
myLine:addEventListener( “touch”, lineTouch )
Am I doing something wrong, or can’t lines have events on them?
I also tried adding the line to agroup, this didn’t work either…
Anyone have a workaround, or is it just not possible?
Thanks [import]uid: 43961 topic_id: 9576 reply_id: 309576[/import]