How do I set up Pop-ups?

Does anyone know what code I should be writing to properly implement a pop-up with Director?

Based on the template in Director, I believe that

director:openPopUp( "screen", popClosed )  

is the command I should use to open the pop-up, but I’m not sure what “popClosed” is used for. Can anyone help me? [import]uid: 100403 topic_id: 25893 reply_id: 325893[/import]

popClosed is basically a function that gets called when the popup ends so that your app can act on whatever happened in the popup.

Lets say that your popup asks the user a Yes/No question. You might want your app to behave differently based on the user’s response after the popup goes away.

Since I think it’s required, if you don’t want to do anything, just write:

  
local function popClosed(event)  
 return true  
end  
  

and be done. [import]uid: 19626 topic_id: 25893 reply_id: 112774[/import]