Advertisement
Guest User

Untitled

a guest
May 2nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. override protected function commitChange():void
  2. {
  3. super.commitChange();
  4.  
  5. if ( this._dataChanged && this._data )
  6. {
  7. if ( this._data.type )
  8. {
  9. switch ( this._data.accountType)
  10. {
  11. case "private":
  12. this.username = this._data.username;
  13. this.password = this._data.password;
  14. this.account = AccountType.private;
  15. break;
  16. case "shared":
  17. this.username = this._data.username;
  18. this.password = this._data.password;
  19. this.account = AccountType.shared;
  20. break;
  21. default:
  22. @@ //shenanigans
  23. break;
  24. }
  25. }
  26. else
  27. {
  28. @@ //shenanigans
  29. }
  30. }
  31. else
  32. {
  33. @@ //shenanigans
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement