|
|||
|
Hi,
Is this possible using Flash / SWFKit? I want to write an application that creates an XML object and passes it to a URL. Possibly on a different domain. The URL will receive these commands and act accordingly. e.g. for the sake of testing, in this case I am trying to get my modem to reboot. I've tried doing something in Flash itself but it doesn't seem to be able to connect to the URL. Code:
var config_str = "<Reboot />";
var my_xml = new XML(config_str);
trace(my_xml.toString());
var myConfigReply_xml = new XML();
myConfigReply_xml.ignoreWhite = true;
myConfigReply_xml.onLoad = myOnLoad;
my_xml.sendAndLoad("http://10.1.1.1/", myConfigReply_xml);
function myOnLoad(success:Boolean) {
trace("In MY ONLOAD");
if (success) {
trace("SUCCESS");
} else {
trace("CONNECTION FAILED");
}
}
Is there something I am missing? Can SWFKit do something like this? Cheers, G. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|