Basically i need to check to see if a website on another domain is online.
how would i do this with actionscript 3?
I need to change a piece of text if the app cannot reach a specified server.
any help would be great, 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.
Is this other domain one of yours? If so you can simply try to download a page from it and if that fails, display whatever error you need. Note that you will need to put up a crossdomain.xml on the other domain, so flash can connect to it. Now that I think about it you might get a sandbox error if the host is down as well, so it might be worth looking for that as well.
Otherwise you could probably build something using AJAX in javascript, that you communicate to using ExternalInterface.