What I want to do is on a button press is to do some calculations then pop-up a menu choice for the user to select from.
I tried putting a pop up button next to my other button and setting it not visible. Then when the user presses the other button, I do my calculations, and set my pop-up button to visible. The user never gets to make a choice from the pop-up button. It flashes briefly then goes back to my code.
Code: Select all
on mouseUp
...do some calcs
global userAmount
set the visible of button "amountMenu" to true
(the button puts the user's choice into the global userAmount)
set the visible of button "amountMenu" to false
... more calcs
end mouseUp
Or should I be using some other construct to be doing this?
Thank you