Sunday, February 8, 2009

Setting focus to a UI control

In Flex, if we validate a user entry, we would show an alert to the user and then set the focus to the incorrect field. Here, the setFocus() method should be called before the Alert.show() method is called.