Search Tutorials
Storing a value within Flash The only step missing from this process is actually storing the user's response before we send it to our CGI. To do that you'll need to issue a SetVariable command in the ActionScript of your button MovieClip. One thing to note here is about creating a button where you can change the text value. To do this, you'll need to create a movie clip with a single instance of your button, and then duplicate this movie clip for each answer value. Saving a response on the server Because of the options out there for processing the user's response, this is a bit trickier to answer. In the accompanying sourcecode, you'll find an ASP script that takes the user's response and increments the value corresponding to the user's response. You may want to use Perl, PHP, JSP or event a raw Servlet to process your answer, each of which handles writing to a file or database somewhat differently. Summary Hopefully, you're well on your way to putting up your own engaging Flash movies that let your users provide feedback. If you haven't already, definitely look through the sourcecode, there are more tricks than we've mentioned here. Happy Surveying!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|