Your Flash movie is essentially going to act as a web browser, in that it will get information from a CGI script in the same method that a web page would get a result from a CGI script. For instance, if a user fills out a form and a CGI script process the user's response, the CGI might display a confirmation message that the user's response has been received. This info is passed in the Header of the file and is essentially a string of name/value pairs separated by ampersands (&). This type of string may look something like:
But wait. It ain't quite that simple. You might have noticed that there are ASCII symbols in the above string. Well, these symbols need to be converted (URL-Encoded, i.e. broken into values that browsers and servers can interpret, regardless of platform) to Hexidecimal values escaped by a percent sign (%). Don't worry. It sounds more complicated than it is. Here's a valid URL-Encoded string:
In this case %40 represents the @ symbol, and %2E represents a period.
For a table of the corresponding hexidecimal values of extended ASCII characters, check out www.cis.udel.edu/~totten/ascii/. You'll just need to prepend each value with a %.
Having said all of that, here's some good news for you ASPers out there: "Forget what I just said." In ASP, you can use the Server.URLEncode() function to convert a regular string to a URLEncoded string. For those of you using PHP, I *think* there's a similar function, but I haven't messed with it at all. Check out PHP.net or PHPBuilder.com for more info.
|» Level Advanced|
Rating: 8 Votes: 73
|Jei Gaither is a web developer in Austin, TX. His projects out-weigh his spare time, but he still manages to find new uses for Flash and creative interfaces.|
|Download the files used in this tutorial.|
|Download (33 kb)|
|More help? Search our boards for quick answers!|