Skip to content

Commit 67f80a0

Browse files
avm2: Use accessors instead of fields for DRMAuthenticationErrorEvent properties
1 parent 5c85f1d commit 67f80a0

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

core/src/avm2/globals/flash/events/DRMAuthenticationErrorEvent.as

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ package flash.events
1212
public static const AUTHENTICATION_ERROR:String = "authenticationError";
1313

1414
// A more detailed error code.
15-
public var subErrorID: int;
15+
private var _subErrorID: int;
1616

1717
// The URL of the media rights server that rejected the authentication attempt.
18-
public var serverURL: String;
18+
private var _serverURL: String;
1919

2020
// The content domain of the media rights server.
21-
public var domain: String;
21+
private var _domain: String;
2222

2323
public function DRMAuthenticationErrorEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, inDetail:String = "",
2424
inErrorID:int = 0, inSubErrorID:int = 0, inServerURL:String = null, inDomain:String = null)
@@ -28,7 +28,28 @@ package flash.events
2828
this.serverURL = inServerURL;
2929
this.domain = inDomain;
3030
}
31-
31+
32+
public function get subErrorID():int {
33+
return this._subErrorID;
34+
}
35+
public function set subErrorID(value:int):void {
36+
this._subErrorID = value;
37+
}
38+
39+
public function get serverURL():String {
40+
return this._serverURL;
41+
}
42+
public function set serverURL(value:String):void {
43+
this._serverURL = value;
44+
}
45+
46+
public function get domain():String {
47+
return this._domain;
48+
}
49+
public function set domain(value:String):void {
50+
this._domain = value;
51+
}
52+
3253
// Creates a copy of the ErrorEvent object and sets the value of each property to match that of the original.
3354
override public function clone():Event
3455
{

0 commit comments

Comments
 (0)