I second this. I was just going to write something and saw this post.
I have this in my overlay scene:
local function onSceneTouch(event )
local options = {
effect = "fade",
time = 500,
params = {
whatWasSentBack = "Added text to " .. theInputText
}
}
storyboard.hideOverlay(options)
end
Then in my calling scene I have this:
function scene:overlayEnded(event)
local params = event.params
-- print("Params is: " .. params.whatWasSentBack)
tInput = native.newTextField ( 105, 300, 130, 25 )
tInput.text = params.whatWasSentBack -- line 57
tInput:setTextColor(0)
tInput.size = 14
end
I thought this should have the passed text, but get nothing back and get this:
scene1.lua:57: attempt to index local ‘params’ (a nil value)
thanks for any help. [import]uid: 101604 topic_id: 35078 reply_id: 139473[/import]