ABSTRACT

This chapter discusses the applications for how to send XML data to a PHP script on the server, where the data is analyzed and XML is sent back to the Flash movie. It discusses the mortgage ad in more detail, since the contact form is very similar. The XML class has methods to send XML data to a server. The class script is located in the file Mortgagequote.as. The first lines, including the constructor, are shown below. The second function will check if the user has entered all the information that is required in this form, the mortgage amount, the phone number, and an e-mail address. The data that has been sent to the server needs to be parsed. An e-mail message with the data has to be sent to the administrator, and an e-mail message to confirm sending the data and a thank you message have to be sent to the client.