EasyManua.ls Logo

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH - Page 655

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
830 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
About XML 655
The server-side script that passes information between Flash and the database reads and writes
the data in XML format. You can use ActionScript to convert information collected in the
SWF file (for example, a user name and password) to an XML object and then send the data
to the server-side script as an XML document. You can also use ActionScript to load the XML
document that the server returns into an XML object to be used in the SWF file.
The flow and conversion of data between a SWF file, 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 then sends the XML objects created in the document.
When a user enters 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 a button to log in, the
loginXML object is converted to a string of XML
and sent to the server.
XML document
username
XML document
Response
SQL request
password
Submit
loginReplyXML
Flash application
Database
Jean Smith

loginXML

Table of Contents

Related product manuals