Hi,
I found an error on the latest version of Corona sdk when I try to add an event to an object that is masked.
Below I enclose a simple code to explain my problem.
This example works correctly in the previous versions of corona (surely in 336 version) but in the latest it doesn’t. (in the terminal is not reported any errors)
_function listener(event)
if event.phase == “began” then
print(“function listener”)
end
end
– img ----------------------------
imgTop = display.newImage(“xx.png”,144,180)
imgTop:addEventListener(“touch”,listener)
localGroup:insert(imgTop)
– mask ---------------------------
maskImgTop = graphics.newMask( “abc.png” )
imgTop:setMask( maskImgTop )
imgTop.maskX = -100
imgTop.maskY = 50_
Thanks
Marco
[import]uid: 44289 topic_id: 12591 reply_id: 312591[/import]