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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).