Very simple code but I can’t get eventHandler function to fire, could this be a bug?
display.setDefault( "background", 1, 1, 1 )
local bg = display.newRect(0, 0, 100, 100)
bg:setFillColor(1, 1, 0);
function eventHandler(event)
print("Event was raised")
end
bg:addEventListener("myEvent", eventHandler)
Runtime:dispatchEvent({ name = "myEvent", target = {} })