- Creating and Sending eGreetings
- Preparing to Work
- Working with the Card Template
- Applying the Scrollbar
- Customizing the Scrollbar
- The eGreeting Interface
- Defining the Structure of the Database
- Using the LoadVars Object to Send Data
- Error Checking
- Setting Up and Testing the Email Program
- Displaying the Card for the Recipient
- Putting It All Together
Putting It All Together
Now that you have all the pieces assembled, the only remaining task is to make sure they're all in the same directory on your web server. (Or, if a separate directory is used for the ASP files, the correct paths must be specified in the sendAndLoad statements in cardsender.fla.) The user's first stop is cardsender.html, which allows each of the three card files (card01.swf, card02.swf, and card03.swf) to be viewed, collects recipient and sender information, and calls writetodb.asp and sendit.asp to save the information and send it to the recipient. Finally, the recipient receives a link to showmycard.asp, which brings up one of the same card .swf's inside the browser. Voilá! You've got a fully functional eCard system that incorporates the beauty and small file sizes that Flash offers with the scripting and tracking power of a backend database.