
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
420
|
Chapter 17: Building a Flash Form
example, if the web server can’t find a CGI script, it sends a “404 Not Found” mes-
sage, but Flash doesn’t display this message. Similarly, if a CGI script’s permissions
aren’t set correctly, Flash doesn’t display an execution-failure error message. In order
to isolate client/server problems when working with Flash, monitor the web server’s
HTTP error log while attempting to run scripts. The web server log will tell you
things that Flash won’t. For information on problems associated with the HTTP
POST method in Flash, see Appendix F.
The Data-Handling Application
Upon receiving data, the data-handling application must parse it (i.e., it must inter-
pret the data intelligently and split it into manageable pieces). The parsed data can
be manipulated in endless ways by the server application, such as saving it to a data-
base or flat text file for future retrieval.
Once data processing is complete, the data-handling application produces a result to
pass back to Flash. The result can be a simple confirmation message (e.g., “Thank
you for submitting your information”), a list of records from a database, or the cur-
rent price of a product.
The application passes the result to the web server, which forwards it on to Flash for
storage or display.
If you’re ...