This content has been marked as final. Show 3 replies
You cannot suspend the script. You need to add event handlers to the Alert box - and then do the save when the user picks your Yes or OK button.
It is possible that I custom a messageBox which can suspend the next script? if it is possible, how could I get it?
You cannot suspend the script. Flex/ActionScript is event-driven. When you post a dialog box - modal or not - you assign event listeners to it. It is in the event listeners that you do whatever it is the dialog is asking - saving data back to the server, for example.
Requesting and posting data to the server is event-driven too. If you request data from the server you must process it in an event handler (which includes data binding).
If you are going to develop Flex applications you will need to understand event-driven programming.