There is an error '<eof>' expected near end. But there is no ends are written wrong.
Jump to content
There's plenty to fix there. I'd recommend that you go read about how to create and use widget.newButton in the documentation: https://docs.coronalabs.com/api/library/widget/newButton.html
1. I agree with @XeduR you need to take a look at the API and other docs for widget.
The code you provided will not work to create a button and has a number of errors and incorrect syntax issues.
2. The reason you got that error message is the last line
onEvent = handelbuttonEvenet( event )
Corona probably interprets this (via Lua) as you trying to create a function but not adding an end to it.
Again, please go read the API docs and use some of these examples verbatim, then modify them a little bit at a time till you understand how it works.
Community Forum Software by IP.Board