View Full Version : flash/perl interaction
subatomicsatan
November 22nd, 2002, 09:54 AM
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
h88
November 22nd, 2002, 12:18 PM
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
subatomicsatan
November 22nd, 2002, 01:39 PM
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
h88
November 22nd, 2002, 01:40 PM
Originally posted by subatomicsatan
can i put a path to the perl script?
Offcourse! :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.