Skip to main content
Inspiring
April 21, 2006
Answered

Passing XML Object from Flash to ASP

  • April 21, 2006
  • 3 replies
  • 399 views
Hi Buddies...,

Is it possible to pass an XML Object/Array Variable from Flash to ASP?

If it is, How to get and parse the XML Object/Array Varible in the ASP file?

I'm planning to go with ASP to create an External XML file, then i'll feed the XML data in to Falsh.
Incase of any Additions or Corrections in the data, again i'll pass the details from flash to ASP and overwrite the existing XML file.

Please help me out...

Thanks in advance...

- kums



Thanks in advance...

- kums
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer TimSymons
The XML class in Flash has multiple ways to send data to server-side script pages. .send(), .sendAndLoad(), etc.

If you want the data sent as an XML object and not as a key/value pair like a form post then make sure you set the contentType to "text/xml" before you use the send() or sendAndLoad() commands.

Reading the XML directly within ASP will require you to use the Request object.

set xml_dom = Server.CreateObject("MSXML2.DOMDocument")
xml_dom.load(request)

Tim

3 replies

kumzleeAuthor
Inspiring
April 24, 2006
Thanks blemmo and TimSymons...

I'll try and let u know.... as its a senior members Suggestion it must work... :-)

- kums
Inspiring
April 21, 2006
Hi,

check out XML.send(), this sends a xml object to a given server. On the server, you have to get it from the GET or the POST input, depending on the method you used to send the xml.

hth,
blemmo
TimSymonsCorrect answer
Participating Frequently
April 21, 2006
The XML class in Flash has multiple ways to send data to server-side script pages. .send(), .sendAndLoad(), etc.

If you want the data sent as an XML object and not as a key/value pair like a form post then make sure you set the contentType to "text/xml" before you use the send() or sendAndLoad() commands.

Reading the XML directly within ASP will require you to use the Request object.

set xml_dom = Server.CreateObject("MSXML2.DOMDocument")
xml_dom.load(request)

Tim