Guest User

Untitled

a guest
Sep 5th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. Flex 4 - PHP strange sequence of executing commands?
  2. protected function button2_clickHandler(event:MouseEvent):void
  3. {
  4. var create_new_user:Users= new Users();
  5. Alert.show("1");
  6. create_new_user.username=username_create.text;
  7. Alert.show("2");
  8. create_new_user.password=MD5.hash(password_create.text);
  9. Alert.show("3");
  10. verificationResult.token = usersService2.verification(create_new_user);
  11. Alert.show("4");
  12. var verificationInt:int = verificationResult.lastResult as int;
  13. Alert.show("5");
  14. //Alert.show("Verification as "+ verificationInt,"Verification Notification");
  15. Alert.show("6");
  16. if (verificationInt==0)
  17. {
  18. Alert.show("if 0");
  19. //Alert.show("Account Created , you may now login...","Account Manager");
  20. createUsersResult4.token = usersService2.createUsers(create_new_user);
  21.  
  22.  
  23. }
  24. else
  25. {
  26. //Alert.show("if else");
  27. Alert.show("Username already existed , please choose another","Username verification");
  28.  
  29. }
  30. }
Add Comment
Please, Sign In to add comment