1. Home
  2. Computing & Technology
  3. Animation

Dynamic eCard with Flash and PHP

By , About.com Guide

7 of 9

Now here’s the important part:

Give each dynamic text field the exact same variable name as the corresponding input text field from the first SWF.

When Flash loads the dynamic URL with variables appended, called by the getURL function in the previous movie, it doesn’t quite know that the variable toname was passed by another Flash SWF; all it knows is that the URL is telling it that toname=somename, and so it looks for reference to a variable called toname in the code embedding the SWF into the current page, and then changes the value of anything in the SWF referenced by toname to the value passed by the URL. We just need to use PHP to tell it exactly how to do that.

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Dynamic eCard with Flash and PHP

©2009 About.com, a part of The New York Times Company.

All rights reserved.