So I got these following codes:
------ The function
local onButton1Release = function (e)
if event.phase == “release” then
storyboard.gotoScene( “Preise”, “crossFade”, 1000 )
end
end
---- The Button
local Button1 = widget.newButton
{
defaultFile = “buttonRed.png”,
overFile = “buttonRedOver.png”,
label = “Preise”,
fontSize = 22,
labelColor = { default = {0,0,0}, over = {255,255,255} },
width = 130,
height = 40,
emboss = true
onEvent = onButton1Release ,
}
Button1.x = 159; Button1.y = 215
You see the onEvent = onButtonRelease and the function I put above the button code.
The goto scene function wont work!?
I get a error it says "expected to close near line … near “onEvent”.
But why what am I doing wrong?
Pls someone help me out!