all groups > flash data integration > may 2006 >
You're in the

flash data integration

group:

Post from flash to asp


Post from flash to asp tg12
5/26/2006 8:54:14 PM
flash data integration:
Hi
I have form in flash with input text fields with Var field set to
t2_2
t3_2
t4_2
...
what i want to do when user enter values and press buton it should post
data(values) to aspx page - how can i do that ? i saw some tutorial but i did
not help

what i did
on (release) {
getURL("sendMail.aspx", "_blank", "POST");

}

BUT IT DOES NOT POST values to aspx page

when i try
on (release) {
var t2_2=2;
getURL("sendMail.aspx", "_blank", "POST");

}
then i can access t2_2 value on aspx page, so what shoul i put before getURL
so it will set values from texboxes
Re: Post from flash to asp tg12
5/26/2006 9:14:07 PM
Re: Post from flash to asp Motion Maker
5/31/2006 12:20:59 PM
Use LoadVars.sendAndLoad or LoadVars.send. Generally you want the
sendAndLoad so you can get a response back from the server script if it
succeeded or failed.

The docs for LoadVars and XML sendAndLoad methods:

XML http://livedocs.macromedia.com/flash/8/main/00002879.html
LoadVars http://livedocs.macromedia.com/flash/8/main/00002336.html



--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Hi
I have form in flash with input text fields with Var field set to
t2_2
t3_2
t4_2
...
what i want to do when user enter values and press buton it should post
data(values) to aspx page - how can i do that ? i saw some tutorial but i
did
not help

what i did
on (release) {
getURL("sendMail.aspx", "_blank", "POST");

}

BUT IT DOES NOT POST values to aspx page

when i try
on (release) {
var t2_2=2;
getURL("sendMail.aspx", "_blank", "POST");

}
then i can access t2_2 value on aspx page, so what shoul i put before
getURL
so it will set values from texboxes

AddThis Social Bookmark Button