Forums
This topic is locked
Cannot pass var back to flash--- urgent pls help
Posted 09 May 2006 09:28:56
1
has voted
09 May 2006 09:28:56 sceptic blackwidow posted:
Hi,I'm having a problem passing the variable back to flash.
I have two text box (a),(b) in flash. (a) to input and (b) to display the input from (a). I'm not good in flash but this is what i manage to modify based on other examples. Here is my flash code.
on (release) {
lv = new LoadVars();
lv.a = this.a.text;
trace(lv.a);
lv.sendAndLoad("test.jsp",lv, "POST"
lv.onLoad = function(success) {
if (success) {
trace(lv.a);
b.text = lv;
}
};
}
this is my jsp code
<%
String strInput=request.getParameter("a"
out.print("&b="+strInput);
%>
when i input sumthing on (a) and click the submit button, nothing happens. the page remains the same. No action.
Can someone pls help me to solve this. I need to implement this to save the flash variables to MySQL database, so i'm testing if this works.
It's really urgent.
Thank you.