Hi,
In the code that I am using in the course that I am taking, I am receiving the following error: attempt to perform arithmetic on global ‘screenLeft’ (a nil value) from the following function. Can you tell me if I am doing something wrong?
Thanks!
function scene:create( event ) local sceneGroup = self.view -- Initialize the scene here. -- Example: add display objects to "sceneGroup", add touch listeners, etc. local backBtn = widget.newButton { label = "Back", x = screenLeft + 10, y = screenTop + 10, onRelease=doButton } backBtn.anchorX = 0 backBtn.anchorY = 0 sceneGroup:insert(backBtn) end