This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > March 2004 > test for internet connection from projector





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author test for internet connection from projector
Ally

2004-03-30, 9:08 pm

how can I test for an internet connection from a projector file? thanks!


Laiverd.COM

2004-03-30, 9:09 pm

You could use a third-party app like the one at www.jugglor.com

Though I am planning on purchasing the Jugglor kit (just enormous lack of
cashflow at the moment), I am using another way at the moment. It involves
putting simple textfile online and trying to retrieve that file. This is
how:

// texfile online.txt, could have whatever content, but this is mine
&online=true&

// in Flash: fast adaptation from a public method in a class, so forgive any
typos
function checkOnlineStatus() {
// reset online status as we check
online = undefined;
// connect to server
var onlineCheck_lv:LoadVars = new LoadVars();
onlineCheck_lv.onLoad = function(success) {
// finds true if the file is found; finds false otherwise
online = success;
delete this;
};
var nocache = Math.random();
onlineCheck_lv.load(onlineURL + "?nocacheVar=" + nocache);
}

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_g...s_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews