|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
Flash Variables to ASP I do not know much ASP but I want to pass variables from a flash document to an asp, but I don't know how. I'm looking for help, I fall on transfer of variable from asp to flash and not the reverse. Is this correct? Can you help me how to transfer variables from flash document 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" ); |
![]() |
|
Tags: asp, flash variables |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What are the Predefined Variables in PHP? | Leonard | Software Development | 5 | 27-02-2010 11:44 PM |
What are the PHP Variables? | shivendra | Software Development | 5 | 28-01-2010 07:05 PM |
Replace variables in php | John Wilson | Software Development | 3 | 04-12-2009 02:17 PM |
Variables to use in many forms! | RupaliP | Software Development | 3 | 19-02-2009 11:41 PM |
KB923789 Flash fails - patch for flash v6.0 complains about Flash | JG | Windows Update | 6 | 20-04-2007 11:44 PM |