|
| how to handle return type in .as file |
 |
Fri, 5 May 2006 07:40:06 +0000 |
Hi i am executing one java method from mxml .. but i am not able to handle it's
return type. How to handle it?
Can anybody help me on this??
may sample code looks like:
/*
req1 = new XMLHttpRequest();
req1 = new ActiveXObject("Microsoft.XMLHTTP");
req1.open("GET", log.login(userId.text,password.text), true);
v = req1.responseText;
alert("RES : "+v);
*/
var ret = log.login(userId.text,password.text);
alert(ret);
if(ret == 1){
return "screen.mxml";
}else{
alert("Login failure");
return "index.mxml";
}
log.login(userId.text,password.text); isthe java method which returns int
type. based on result i have to porcess on this page
Thanks
Satish KC
|
| Post Reply
|
|
|
|
|
|
|
|
|
|