innui
April 16th, 2003, 02:24 PM
Well, I've come across a problem and i'm stumped. Anyway, I stumbled upon this aim online presence check in an old AIM pdf file. There is a server check at an aol server to see if a person is online, if they are it sends the browser to the "on_url" setting, if not, it sends the browser to the "off_url" setting. I realized that it doesn't work for some screen names for some reason, but it does for mine, so i wanted to use it in flash. I've tried three ways, and two of them WORK! But, only when I run them from my computer... When I upload it to my host, it doesn't work! Here's the two ways I've tried:
aimcheck = new LoadVars();
aimcheck.load("http://big.oscar.aol.com/St5f1n?on_url=http://www.stefangomez.com/aimchecky.html&off_url=http://www.stefangomez.com/aimcheckn.html");
aimcheck.onLoad = function (){
testo.text = aimcheck.aim;
}
all this does is set the text of "testo" to what the value for aim is depending on what the bigoscar sends the html page to. This next one does the same but with sendAndLoad instead.
aimcheck = new LoadVars();
aimcheck.load("http://big.oscar.aol.com/St5f1n?on_url=http://www.stefangomez.com/aimchecky.html&off_url=http://www.stefangomez.com/aimcheckn.html");
aimcheck.onLoad = function (){
testo.text = aimcheck.aim;
}
then lastly i tried to use parameters to send, and i don't know how to code it so that it doesn't change all my characters into the escape() form of it.
aimcheck = new LoadVars();
aimcheck.on_url = "http://www.stefangomez.com/aimchecky.html");
aimcheck.off_url = "http://www.stefangomez.com/aimcheckn.html");
aimcheck.load("http://big.oscar.aol.com/St5f1n", aimcheck, "GET");
aimcheck.onLoad = function (){
testo.text = aimcheck.aim;
}
Again, the first two WORK when running the SWF locally, but for some reason not on a couple of hosts that i've tried.. maybe i'm going about this the wrong way. I've thought about making some php script to do this then have AS read the PHP, but then i'm not sure about the PHP code on that.
Thanks for all the help!
Stefan
aimcheck = new LoadVars();
aimcheck.load("http://big.oscar.aol.com/St5f1n?on_url=http://www.stefangomez.com/aimchecky.html&off_url=http://www.stefangomez.com/aimcheckn.html");
aimcheck.onLoad = function (){
testo.text = aimcheck.aim;
}
all this does is set the text of "testo" to what the value for aim is depending on what the bigoscar sends the html page to. This next one does the same but with sendAndLoad instead.
aimcheck = new LoadVars();
aimcheck.load("http://big.oscar.aol.com/St5f1n?on_url=http://www.stefangomez.com/aimchecky.html&off_url=http://www.stefangomez.com/aimcheckn.html");
aimcheck.onLoad = function (){
testo.text = aimcheck.aim;
}
then lastly i tried to use parameters to send, and i don't know how to code it so that it doesn't change all my characters into the escape() form of it.
aimcheck = new LoadVars();
aimcheck.on_url = "http://www.stefangomez.com/aimchecky.html");
aimcheck.off_url = "http://www.stefangomez.com/aimcheckn.html");
aimcheck.load("http://big.oscar.aol.com/St5f1n", aimcheck, "GET");
aimcheck.onLoad = function (){
testo.text = aimcheck.aim;
}
Again, the first two WORK when running the SWF locally, but for some reason not on a couple of hosts that i've tried.. maybe i'm going about this the wrong way. I've thought about making some php script to do this then have AS read the PHP, but then i'm not sure about the PHP code on that.
Thanks for all the help!
Stefan