all groups > flash data integration > march 2007 >
You're in the

flash data integration

group:

Send variables to database without opening broswer


Send variables to database without opening broswer ralphsimmons
3/12/2007 5:11:46 PM
flash data integration:
I have a standalone flash app that needs to get user input and send it to a
remote server / database. When I use the method below, a browser window opens
which I don't want to happen - I want the data to be sent but not display the
page.

my_lv.fname = fname;
my_lv.lname = lname;
my_lv.emailaddr = emailaddr;
my_lv.password = password;
my_lv.team = team;
my_lv.send("somepage.cfm", "_blank", "POST");

somepage.cfm opens up which is what I don't want to happen - I want the flash
app to be the only thing on happening. I tried a couple other methods with the
same results. Is there a way to do this??? Thanks
Re: Send variables to database without opening broswer MotionMaker
3/12/2007 5:48:36 PM
In the docs for http://livedocs.macromedia.com/flash/8/main/00002335.html it
says:
"A successful send() method call will always open a new browser window or
replace content in an existing window or frame. If you would rather send
information to a server and continue playing your SWF file without opening a
new window or replacing content in a window or frame, then you should use
LoadVars.sendAndLoad()."

So look up the http://livedocs.macromedia.com/flash/8/main/00002336.html
example and adapt to your needs. You do not need to handle the response, but
you probably would want one anyway to be sure the process succeeded.
AddThis Social Bookmark Button