Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement