Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Thread to test for computer internet connection

Status
Not open for further replies.

jezx

Technical User
Jul 15, 2002
18
0
0
GB
I have been asked to add some code to a flash.exe file that when opened, off a CD, it will check for a web connection and pass back the information to the provider that the file has been accessed. Thats all.
I have suggested that most firewalls will block this connection but if someone knows how to do this I would be interested.
I would also concider this a bit sneaky if it is not telling the user that it is going to send information but hey, I guess the client would not be the first.
 
i dont know if this is possible but i have an idea that might work:

put a remote file on a webserver called testconnection.txt and in that have text: &connectedServer=yes

then in flash use the loadVars();

Code:
lv = new LoadVars();
lv.onLoad = function() {
	_root.isConnected.text = lv.connectedServer;
};
lv2.sendAndLoad("[URL unfurl="true"]http://www.webserver.com/testconnection.txt",[/URL] lv, "GET");

Regards,

Martin

Gaming Help And Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top