We got Dialog objects to work today in class! I found the top answer in this link particularly helpful:
I also used this link that describes what each method does in the Dialog class:
In your code where you are about to change slides when clicking an ActionChoice you should add some logic that calls a method that displays the dialog object if you need to. Then the code creating the dialog object is in a separate method. You can set the text of your pop-up by passing you message in as a string to the text method. We just created an OK button using one of the button methods. We passed in our Dialog object as a parameter because that is the Object passed in for the result method. You have to do this because this method is outside of the scope where your dialog object exists. Since objects are passed by reference, it will do any effects that you do within the method on the object that you pass in. We just did dialog.hide() in the result method to hide the dialog message when you click OK. Hope this helps. Let me know if you have any other questions.