Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2005, 08:08 AM
Member
 
Join Date: Sep 2003
Posts: 95
Default Transmitting XML content to a specific URL?

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");
}
}
I just get "CONNECTION FAILED" errors....

Is there something I am missing? Can SWFKit do something like this?

Cheers,

G.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:02 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.