-
Notifications
You must be signed in to change notification settings - Fork 2
/
MGEvent.as
26 lines (21 loc) · 829 Bytes
/
MGEvent.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package {
import flash.events.Event;
public class MGEvent extends Event{
public static const JSON:String = "mg-json";
public static const BINARY:String = "mg-binary";
public static const CLOSED:String = "mg-closed";
public static const ERROR:String = "mg-error";
public static const AUTH_SUCCESS:String = "mg-authsuccess";
public static const ROLE_CHANGE:String = "mg-rolechange";
public static const USER_DISCONNECTED:String = "mg-disconnected";
public static const USER_JOINCHANNEL:String = "mg-joinchannel";
public static const USER_LEAVECHANNEL:String = "mg-leavechannel";
public var object:Object;
public var typeCode:uint;
public function MGEvent(eventType:String, obj:Object, typeCode:uint = 4){
super(eventType);
this.object = obj;
this.typeCode = typeCode;
}
}
}