| 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
----------------------------------------------------------------------------
-----------
|