Hello,
I am getting this error:
File: bad argument #-2 to ‘insert’ (Proxy expected, got nil)
Bad argument #-2 to ‘insert’ (Proxy expected, got nil)
trying to execute this line
storyboard.gotoScene( “scripts.screen2”,“fade”,400 )
this is part of an event handler for the userInput event on a textfield
local function onPasscode(event)
if (event.phase == “submitted”) then
if pwdField.text == “…” then
storyboard.gotoScene( “scripts.screen2”,“fade”,400 )
return true
else
pwdField.text = “”
native.setKeyboardFocus(pwdField)
return false
end
end
end
for some reason this doesn’t work although is a fairly simple code, if the user press enter on the keyboard and the code is correct send the user to screen2…
by the way the same code works on a handler for a button, but not for the text field.
any help would be greatly appreciated.