I know how to handle an Exception when dealing with Flex with server side that is , when an Exception comes from the server side (java) i can easily handle that on the fault event with the help of ErrorMessage .
But can anybody please let me know how to handle an Exception when it comes on to the ActionScript and show it to the User .
For instance , i have seen a half example like this :
MyTextFiled.text = error.toString();
Now please let me know how can i show this to the End User ??
And i can only see Errors in ActionScript , is there anything like Exceptions on to Flex??
Thanks in advance .
First of all flex does not provide great flexibility with Exceptions and Errors.
You can just display alertBox to user displaying reason behind the error.
You mean to say , create a Alert class inside the catch block of the ActionScript
class and display it to the User ??
you can use any one of following