What is the fastest way to check if a user is connected to the internet in AS3?

StackOverflow https://stackoverflow.com/questions/23251167

  •  08-07-2023
  •  | 
  •  

سؤال

I need to check if a user is connected to the internet. What's the fastest way to do that in Flash AS3?

هل كانت مفيدة؟

المحلول

Do an HTTP GET of a very reliable and fast website, like google.com.

See AS3 HTTP Get Example.

نصائح أخرى

Make a request. If it fails - there is no internet :)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top