daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //var check:int = accountloginService.loginCheck(usernameLogin.text,passworkLogin.text).result as int;
  2.             loginCheckResult.token = accountloginService.loginCheck(usernameLogin.text,passworkLogin.text);
  3.             var check:int = parseInt(loginCheckResult.lastResult);
  4.             //var check:int =1;
  5.  
  6.             if ( check == 1 ){
  7.  
  8.                 getUserByIDResult.token = accountloginService.getUserByID(accountloginService.getUserByNamePW(usernameLogin.text,passworkLogin.text));
  9.  
  10.                 //set currentState="PRODUCT"; in main
  11.                 var login:Event = new Event("login", true, true);
  12.                 loginButton.dispatchEvent(login);
  13.  
  14.                 //set state = In; in there
  15.                 this.currentState="In";
  16.  
  17.                 //set the user label
  18.                 userNameLabel.text=usernameLogin.text;
  19.  
  20.                 //accountloginService.commit();
  21.                 Alert.show("Log in success");
  22.  
  23.             }else {
  24.  
  25.                 Alert.show("Log in Fail");
  26.  
  27.             }
  28.  
  29.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top