Director PopUp error

I’m trying to use the newfound popUp functionality in director in my game and I’m getting an error:

Director ERROR: Failed to execute news( params ) function on ‘nil’.

My call to load the popup:

[lua] director:openPopUp({score=gameScore, msg=message}, “correct”, correctPopClosed )[/lua]

correct.lua
[lua]module(…, package.seeall)

function new(params)

local close = function ( event )
if event.phase == “ended” then
director:closePopUp()
end
end

local localGroup = display.newGroup()
local correctBackground = display.newImageRect(“correct.png”, 512, 384)
correctBackground.x = display.contentWidth / 2
correctBackground.y = display.contentHeight / 2
correctBackground.isVisible = false
localGroup:insert(correctBackground)
continueButton = display.newImageRect(“continue.png”, 150, 32)
continueButton.x = display.contentWidth / 2
continueButton.y = display.contentHeight - 32
localGroup:insert(continueButton)
continueButton:addEventListener(“touch”, close)
correctTimer = timer.performWithDelay(5000, close)

function clean()
if correctTimer ~= nil then
timer.cancel(correctTimer)
end

end

return localGroup
end[/lua]

Any ideas?
[import]uid: 19626 topic_id: 15735 reply_id: 315735[/import]

Anyone? Beuler?

I’m stumped on this one. [import]uid: 19626 topic_id: 15735 reply_id: 58366[/import]

think you have to give the params a name like this

params={ score=gameScore, msg=message}

director:openPopUp( params, …
sorry on phone can’t see all code to complete line above [import]uid: 7911 topic_id: 15735 reply_id: 58371[/import]

thinking more about it I think it just
params={ highScore,msg}
director:openPopUp( params,…
when I get to computer I’ll check how I did it [import]uid: 7911 topic_id: 15735 reply_id: 58374[/import]

I seem to have solved it. The syntax is indeed:

[lua] director:openPopUp( { score=myScore, reason=questions[q].reason } , “correct”, correctPopClosed )[/lua]

The problem was the receiving lua file was looking for a variable myScore in the params table, which didn’t exist, it was just “score”. Once I fixed that, problem solved.

[import]uid: 19626 topic_id: 15735 reply_id: 58380[/import]

great [import]uid: 7911 topic_id: 15735 reply_id: 58397[/import]