This content has been marked as final. Show 5 replies
Isn't the Alert control a solution ?
Alert.show("Text", "Title", Alert.OK, this, alertClickHandler);
Thanks for your response –
The problem with using popup modal windows (such as Alert) is that the calling program does not stop from executing while in VB (or in other tools) the application waits for the Modal window thread to return.
There is NO code blocking in the Flash Player.
You MUST use events.
It is a different, frustrating way to think/work, when you want the simplicity of blocking, but once you stop resisting you will not find it difficult.
Note the "alertClickHandler" in michel_v's example.
That is the easiest way to go.
in the absence of "code locking" is there a way I can suspend a thread and give CPU time to other threads - (something like doEvents() in VB , sleep() in Java or Application.HandleMessage() in Delphi...) ?