PDA

View Full Version : from FLAS 2 ASP?? how



chipdouglas
November 19th, 2002, 05:58 AM
Plz show me a simple way to send a VAR from flash to asp, and then the asp file writes it in a .db file

thanks!:cyclops:

h88
November 19th, 2002, 06:05 AM
Insert this script into your _root (main) timeline:


loadHandler = new LoadVars();
loadHandler.send("file.asp", loadHandler, "POST");

then, define ur movie variables as for example:


loadHandler.username = _root.username.text;
loadHandler.anotherthing = _root.anotherthing.text;

Please tell me how it goes.

chipdouglas
November 19th, 2002, 06:10 AM
i'm lost :-) does this also work for ASP???? coz I need it for ASp :cowboy:

h88
November 19th, 2002, 06:11 AM
Yes it does. Put this code into ur main timeline. Debug this code to suit u.

chipdouglas
November 19th, 2002, 06:20 AM
I'm totally lost and totally nwebie..could you post the .fla and the .asp files ...I need to see it in a content..plz :*(

h88
November 19th, 2002, 06:21 AM
I really dunno how to code ASP, but i will post files that does the job though, can i have a look at your asp file! can u tell wut do u exactlly want to do?

chipdouglas
November 19th, 2002, 06:24 AM
it don't have any .asp file...i'm trying to make a game which sends it score to asp and to a database...does it make sense?

h88
November 19th, 2002, 06:26 AM
Yes it does, i thought u want to post your vars into the asp file, sorry, i don't know how to code asp. :(

chipdouglas
November 19th, 2002, 06:29 AM
well, could you tell me how to send it to a .asp file?? the thing is that i'm making the flash thing and a .asp programmer programs the .asp...I just need to send the VAR from flash to .asp and he'll make the rest

h88
November 19th, 2002, 06:32 AM
I helped a guy already on how to post var from flash into php then txt file, leave out the textfile from the zip and use the Fla there, here is the thread, the last post:
http://www.kirupaforum.com/showthread.php?threadid=8609&highlight=address