corona new button(按钮的使用)

local playButtonPress = function (event)
print("button press")

end


local playButtonRelease = function(event)
print("button release")

end


local playButton = widget.newButton{
defaultFile = "Menu_play.png",
overFile = "Menu_play_p.png",
onPress = playButtonPress,
onRelease = playButtonRelease,
}

你可能感兴趣的:(button)