Hi, Check out the example on the Alert language reference... http://livedocs.adobe.com/flex/3/langref/mx/controls/Alert.html#includeExamplesSummary
You can assign a callback Handler like in the example: alertClickHandler() ... where you can check the button clicked and in that function you can restore focus to the object you previously set focus to. Hope that helps... Nick 2009/12/22 sasuke <uzumaki.naruto...@gmail.com> > > > Hi all, I have a form which when submitted validates the form data. This > validation message is shown as an Alert. The problem here is that the focus > which I set on the rogue element/control which contains invalid data is lost > when the user clicks on the OK button of the Alert control? Is there any > generic way of preserving the focus which I had set on validation or > bringing it back to the control which had focus before the OK button was > clicked? TIA. >