answer <question> [with <reply> [or <reply2>
[or <reply3>]]] [at <x,y>] Applies to global
The answer command creates a dialog box that prompts the user to choose from one, two, or three button replies. If you do not specify any button replies, Oracle Media Objects automatically provides an OK reply button. The last button specified is the default reply, and can be selected by clicking on it or by pressing Enter.
The text of the selected button reply is stored in the local variable it. From there it can be manipulated through scripts. The <question> size limit varies by font type and by platform. You can designate the location of the dialog box on the screen by specifying the x and y coordinates of the top-left of the dialog box in relation to the top-left corner of the Oracle Media Objects window.
Type the following lines in the Message Box. After you have answered each question, type it in the Message Box to see the stored value.
Now, create a button and name it "Test". Add the following handler to the button's script:
"Two" or "Three"
"You picked Two."
"You picked Three." end mouseUp
This text has been mechanically extracted from the Oracle Media Objects 22.214.171.124 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.