Hi there,
you try something like a prototype object system.
That won’t work in Corona cause you cannot copy display objects (widgets are display objects too).
With your btnNext = btnTemplate you only set a refference to the already existing button.
I would try something like the code below. It contains a function which creates a new button and gives him all the functions and information you want.
local function create\_btn(id) local button = widget.NewButton() button.id = id function button:touch(event) end button:addEventListener("touch") return button end btn1 = create\_btn(1) btn2 = create\_btn(2)
This is a really simple example, but you can add more functions and parameters as you like.