Can you add touch listeners to a display.newLine?

Title pretty much says it.

I can’t seem to add an eventListener(“touch” to my display.newLine.

Is that not supported?

Thanks! [import]uid: 49205 topic_id: 10759 reply_id: 310759[/import]

The theory would be to add a Runtime event of touch, to a touch compiler function.

And in the began phase create the line:
line = display.newLine(event.x,event.y)

and in the moved phase:
line:append(event.x,event.y)

look at the sample code for touch events and that will provide a good base to start.

[import]uid: 59380 topic_id: 10759 reply_id: 39094[/import]

Sorry, I guess I wasn’t clear with my question.

I already have a line drawn. I want to do justCreatedLine:addEventListener(“touch”, touchListener) [import]uid: 49205 topic_id: 10759 reply_id: 39095[/import]

Here’s my hack to get around the problem.

Add a rectangle (with alpha = .01) behind each line segment and add the listener to that. [import]uid: 49205 topic_id: 10759 reply_id: 39096[/import]