my first corona code gives me headache:
require( “widget” )
local myButton = widget.newButton
{
left = 10,
top = 80,
label = “gumb”,
labelAlign = “center”,
font = “Arial”,
fontSize = 18,
labelColor = { default = {0,0,0}, over = {255,255,255} },
}
corona simulator gives me error:
c:/corona/main.lua3: attempt to index global ‘widget’ (a nil value)
what did i do wrong? i need just a simple button, please help.