Hallo,
Just started to use corona and stuck in a simple place. How to make a button do something.
In simulator I see that button reacts to being pressed/released, but code is not running assigned to button:
local widget = require(“widget”)
local button = widget.newButton
{
defaultFile = “b1.png”,
overFile = “b2.png”,
onRelease = pressButton
}
button.x = 240
button.y = 400
– THIS IS NOT WORKING 
local function pressButton( event )
button.x = 240
button.y = 500
end
=================
PLEASE PLEASE, how to make the damn button do stuff?
Thank you all
Lauras