• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Building a Flash Form > Creating a Flash Fill-in Form

17.2. Creating a Flash Fill-in Form

This example demonstrates how to send a single text field variable from Flash to a Perl script, named echo.pl, and how to receive a response from echo.pl in Flash. The movie we'll build consists of an interface and two functions—initForm( ) and submitForm( ). The interface includes an input text field, a Submit button, and a movie clip that displays echo.pl's response. The initForm( ) function creates the server communication objects that send our variable between Flash and echo.pl. The submitForm( ) function formats the data and sends it to echo.pl. For simplicity, our code is attached to frame 1 of the scripts layer. In practice, you should attach the code to a frame following your preloader.

The example files are available at the online Code Depot.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint