Hello,
I was wondering if there's a remote file availability check using Flex-AIR. Not a local file.
Example: For displaying a image place holder instead of a broken image icon.
image.source = imageUrl + "/__default.gif";
Thanks.
Hello,
I was wondering if there's a remote file availability check using Flex-AIR. Not a local file.
Example: For displaying a image place holder instead of a broken image icon.
image.source = imageUrl + "/__default.gif";
Thanks.
Listen for the ioError and httpStatus events.
ioError
- "Dispatched when an input/output error occurs."
httpStatus
- "Dispatched when a network request is made over HTTP and Flash Player or AIR can detect the HTTP status code."
[Source: Flex AS3 Doc]
Also, the HTTP Status can be:
1xx - Informational; 2xx - Success; 3xx - Redirection; 4xx - Client Error; 5xx - Server Error;
*) xx is a number made out of two digits (e.g. 404 or 200).