Ok, i was thinking of that approach - but, yes theres always a but 
I am using storyboard for my game and in my main.lua is the function:
local function onSystemEvent( event )
if( event.type == "applicationExit" ) then
db:close()
end
end
Runtime:addEventListener( "system", onSystemEvent )
Thats for a “soft” close of my db, I guess that I can use this place for bringing up the “in game” menu. But, yes one more but
The function to bring up this menu is within my “Game Logic” module. So there are two things playing around here.
First, is the game running? If yes, then bring up the menu when the user exit (easy implementation).
Second, how the heck do I execute the function within my gameLogic.lua file, from main.lua?
One approach would maybe to add a new eventListener to gameLogic.lua - but it doesn’t feel correct to have two listener, listening to the same song 
Regards, Joakim
[import]uid: 81188 topic_id: 19840 reply_id: 79818[/import]