Flash/perl interaction

hello all,

i’m not sure this is possible, but:

is there a way in flash mx other than loadVariables or getURL to have flash mx interact with the server (for example, a perl script)? meaning, do all such interactions have to occur with a webserver running (ie access to scripts in cgi-bin)?

thanks!

james

You should define your variables according to your script, and then post them through flash using the new LoadVars way, example:

This example will send the information from a flash file into the Perl Script:


var dataHandler = new LoadVars();//This will create a new LoadVars Object called dataHandler.
dataHandler.FirstName = FirstName.text;// this will assign DataHandler FirstName variable to FirstName textfield
dataHandler.send("script.pl", dataHandler, "POST");// this will POST DataHandler Variables into the perl script

Hope this helps.

yours,
h88

hey h88,

can i put a path to the perl script?

thnax for the response! as soon as i bgin experimenting, i’m sure it’ll become more clear to me.

james

*Originally posted by subatomicsatan *
can i put a path to the perl script?

Offcourse! :slight_smile: