Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override protected function commitChange():void
- {
- super.commitChange();
- if ( this._dataChanged && this._data )
- {
- if ( this._data.type )
- {
- switch ( this._data.accountType)
- {
- case "private":
- this.username = this._data.username;
- this.password = this._data.password;
- this.account = AccountType.private;
- break;
- case "shared":
- this.username = this._data.username;
- this.password = this._data.password;
- this.account = AccountType.shared;
- break;
- default:
- @@ //shenanigans
- break;
- }
- }
- else
- {
- @@ //shenanigans
- }
- }
- else
- {
- @@ //shenanigans
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement