|
| ||||||||||
| Tags: asp, flash variables |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Flash Variables to ASP
|
|
#2
| |||
| |||
| Re: Flash Variables to ASP
To send variables from flash to a page (asp, php, .... it works like that), it must pass through the LoadVars object. This sends the data just like a simple html form would do. Code: var my_lv:LoadVars = new LoadVars(); my_lv.v1= myvariable1; my_lv.v2 = myvariable1; Code: // send (can be POST or GET)
// here, sending POST and open the page in a new window
my_lv.send("mypage.asp", "_blank", "POST" ); |
|
#3
| |||
| |||
| Re: Flash Variables to ASP
OK thank you, for it seems to work. But, once in my asp file how do I get my my_lv.v1 and my_lv.v2? In php I managed to recover a $_POST ['myvar'], but in asp I don't know how to do. I searched a lot and I get the code but its still not working: in Flash: HTML Code: var my_lv:LoadVars = new LoadVars();
my_lv.v1= "myvariable";
my_lv.send("myasp.asp","_blank","POST" ); HTML Code: <%
Dim thename
thename = Request.Form("v1" )
response.write(thename)
%> |
|
#4
| |||
| |||
| Re: Flash Variables to ASP Quote:
Code: // results in result_lv
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
// function called when the data sent by the asp page is LOADED
if (success) {
// data received
} else {
// in case of failure
}
};
// send POST
my_lv.sendAndLoad("mypage.asp", result_lv, "POST" ); |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Flash Variables to ASP" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What are the Predefined Variables in PHP? | Leonard | Software Development | 5 | 27-02-2010 10:44 PM |
| What are the PHP Variables? | shivendra | Software Development | 5 | 28-01-2010 06:05 PM |
| Replace variables in php | John Wilson | Software Development | 3 | 04-12-2009 01:17 PM |
| Variables in .bat files | jackz | Software Development | 3 | 30-07-2009 10:33 PM |
| KB923789 Flash fails - patch for flash v6.0 complains about Flash | JG | Windows Update | 6 | 20-04-2007 11:44 PM |