The server receives the XML, generates an XML response, and sends it back to the SWF file. If
the password is accepted, the server responds with the following:
<LOGINREPLY STATUS="OK" SESSION="rnr6f7vkj2oe14m7jkkycilb" />
This XML includes a
which will be used in all communications between the client and server for the rest of the session.
If the password is rejected, the server responds with the following message:
<LOGINREPLY STATUS="FAILED" />
The
XML node must load into a blank XML object in the SWF file. The following
LOGINREPLY
statement creates the XML object
// B. Construct an XML object to hold the server's reply
loginReplyXML = new XML();
loginReplyXML.onLoad = onLoginReply;
The second statement assigns the
loginReplyXML.onLoad
The
XML element arrives asynchronously, much like the data from a
LOGINREPLY
function, and loads into the
loadVariables()
the
handler of the
onLoad
function and assign it to the
element. You must also assign the
LOGINREPLY
contains the Submit button.
attribute that contains a unique, randomly generated session ID,
SESSION
loginreplyXML
onLoginReply()
handler.
object is called. You must define the
loginReplyXML
loginReplyXML.onLoad
Sending and loading variables to and from a remote source
to receive the XML node:
function to the
object. When the data arrives,
loginReplyXML
handler so that it can process the
function to the frame that
onLoginReply()
onLoginReply()
183
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?