View Single Post
  #2 (permalink)  
Old 02-26-2008, 09:51 PM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: Pass Complex Data from flash to .Net or any other server side script

Hi,
It is possible to send complex data from Flash to .Net as an xml using "XML" objects sendAndLoad method.

sendAndLoad (XML.sendAndLoad method)

public sendAndLoad(url:String, resultXML:XML) : Void

Encodes the specified XML object into an XML document, sends it to the specified URL using the POST method, downloads the server's response, and loads it into the resultXMLobject specified in the parameters. The server response loads in the same manner used by the XML.load() method.

When the sendAndLoad() method is executed, the XML object property loaded is set to false. When the XML data finishes downloading, the loaded property is set to true if the data successfully loaded, and the onLoad event handler is invoked. The XML data is not parsed until it is completely downloaded. If the XML object previously contained any XML trees, those trees are discarded.

So using the complex data create it in an xml format. Then send it to .Net or any other server side script using xml.sendAndLoad object.
__________________
The OXYGEN
Delivers edgy, intelligent Technology to all...
Reply With Quote