On Build 2013.1043, the following code will print out the “began” and “moved” phases but not the “ended” phase:
local button = widget.newButton{
defaultFile=“default.png”,
overFile=“over.png”,
width=100, height=100,
onEvent = function(event) print("Phase: " … event.phase); end
};
button.x = display.contentWidth * 0.5;
button.y = display.contentHeight * 0.5; [import]uid: 145848 topic_id: 36942 reply_id: 336942[/import]