Pause/Stop Runtime when using PopUps

Hi everyone, it is too important, because i programmed all my app using popUps and now really want to resolve this problem, it is like:
i have my game and have a popUp that is my pause system. i am running my game.lua file, and it have a runtime inside, when i touch on my pause button that is inside of my game.lua file, the runtime is stopped and my app goes to my pause.lua, that is my popUp, and then when i touch on my return button that is inside of my pause.lua (popUp), it close my popUp and back to my game.lua file. and when it happens i need to start again my runtime, inside of game.lua. it is too important for me and really need some help to resolve it.
Thanks people [import]uid: 26056 topic_id: 22175 reply_id: 322175[/import]

I’l definitely be interested to hear how others handle this. One inefficient way that I imagine would work would just be to wrap the entire Runtime listener contents in a big if statement like:

[lua]RuntimeFunction( e )
if not paused then
–Runtime stuff
end
end[/lua]

So while the game is paused, the function still exists and is running, but it’s by passing all the code within. [import]uid: 14598 topic_id: 22175 reply_id: 88186[/import]

Yeah i think the same, i tried to use a runtime and save a variable on ice library and every time my runtime is checking for the value of the variable inside of ice library and i know that the code dont have bugs or is wrong, and it does not work. it is a very important thing because a lot of people use director and maybe popUps, all need to know about this information, and if anyone can give help, will be great for all not only for me or us [import]uid: 26056 topic_id: 22175 reply_id: 88189[/import]

up [import]uid: 26056 topic_id: 22175 reply_id: 88511[/import]