. The flow (Web server on xp)
Saturday, October 27th, 2007. The flow and conversion of data between a Flash movie, a server-side script, and a database The password validation for the brokerage system requires two scripts: a function defined on Frame 1, and a script that creates and sends the XML objects attached to the Submit button in the form. When users enter their information into text fields in the SWF file with the variables username and password, the variables must be converted to XML before being passed to the server. The first section of the script loads the variables into a newly created XML object called loginXML. When a user clicks the Submit button, the loginXML object is converted to a string of XML and sent to the server. The following script is attached to the Submit button. To understand this script, read the commented lines (indicated by the characters //): on (release) { // A. Construct an XML document with a LOGIN element loginXML = new XML(); loginElement = loginXML.createElement(”LOGIN”); loginElement.attributes.username = username; loginElement.attributes.password = password; loginXML.appendChild(loginElement); // B. Construct an XML object to hold the server’s reply loginReplyXML = new XML(); loginReplyXML.onLoad = onLoginReply; // C. Send the LOGIN element to the server, // place the reply in loginReplyXML loginXML.sendAndLoad(”https://www.imexstocks.com/main.cgi”, loginReplyXML); } The first section of the script generates the following XML when the user clicks the Submit button:
In case you need quality webspace to host and run your web applications, try our personal web hosting services.