When going through the Error Handling in Flex from Adobe site, i got confusion in understanding Asynchronous Way of
Error Handling Mechanish in FLEX .
Here the authro Mentiones an example related to File Uploading that is for FileReference class .
I am not quite familiar with File Uploading , so i could not able to gran this concept .
Please let me know what is this Asynchrnous Way of Error Handling in FLEX , because as far is synchronous is concerned it is straight Forward Mechanism .
Please help me in understanding this Concept.
This type of error handling means that you will listen for events on the calling instance such as a file reference object. You will use the method addEventListener() and listen for events such as IO_ERROR or whatever event the instance will dispatch on error.
See the documentation for specific error events of each class that acts as a service.
The async part means that the error if thrown will happen after the line and method executes where you called your service.
Most async errors dispatch an IOErrorEvent. You have to add a listener in
the right place for that event.