diff --git a/src/as/com/threerings/ezgame/EZGameSubControl.as b/src/as/com/threerings/ezgame/EZGameSubControl.as index 49f4142e..d35156b7 100644 --- a/src/as/com/threerings/ezgame/EZGameSubControl.as +++ b/src/as/com/threerings/ezgame/EZGameSubControl.as @@ -80,7 +80,7 @@ package com.threerings.ezgame { /** * Dispatched when a user chats. * - * @eventType com.threerings.ezgame.UserChatEvent.TYPE + * @eventType com.threerings.ezgame.UserChatEvent.USER_CHAT */ [Event(name="UserChat", type="com.threerings.ezgame.UserChatEvent")] diff --git a/src/as/com/threerings/ezgame/EZLocalSubControl.as b/src/as/com/threerings/ezgame/EZLocalSubControl.as index 5c9b2cf9..da63ec5f 100644 --- a/src/as/com/threerings/ezgame/EZLocalSubControl.as +++ b/src/as/com/threerings/ezgame/EZLocalSubControl.as @@ -42,7 +42,7 @@ import flash.geom.Point; /** * Dispatched when the size of the game area changes. * - * @eventType com.threerings.ezgame.SizeChangedEvent.TYPE + * @eventType com.threerings.ezgame.SizeChangedEvent.SIZE_CHANGED */ [Event(name="SizeChanged", type="com.threerings.ezgame.SizeChangedEvent")] diff --git a/src/as/com/threerings/ezgame/EZNetSubControl.as b/src/as/com/threerings/ezgame/EZNetSubControl.as index 738febef..71d6c684 100644 --- a/src/as/com/threerings/ezgame/EZNetSubControl.as +++ b/src/as/com/threerings/ezgame/EZNetSubControl.as @@ -24,14 +24,14 @@ package com.threerings.ezgame { /** * Dispatched when a property has changed in the shared game state. * - * @eventType com.threerings.ezgame.PropertyChangedEvent.TYPE + * @eventType com.threerings.ezgame.PropertyChangedEvent.PROPERTY_CHANGED */ [Event(name="PropChanged", type="com.threerings.ezgame.PropertyChangedEvent")] /** * Dispatched when a message arrives with information that is not part of the shared game state. * - * @eventType com.threerings.ezgame.MessageReceivedEvent.TYPE + * @eventType com.threerings.ezgame.MessageReceivedEvent.MESSAGE_RECEIVED */ [Event(name="msgReceived", type="com.threerings.ezgame.MessageReceivedEvent")] diff --git a/src/as/com/threerings/ezgame/MessageReceivedEvent.as b/src/as/com/threerings/ezgame/MessageReceivedEvent.as index 19f0de4e..cebde320 100644 --- a/src/as/com/threerings/ezgame/MessageReceivedEvent.as +++ b/src/as/com/threerings/ezgame/MessageReceivedEvent.as @@ -29,7 +29,7 @@ import flash.events.Event; public class MessageReceivedEvent extends EZEvent { /** The type of all MessageReceivedEvents. */ - public static const TYPE :String = "msgReceived"; + public static const MESSAGE_RECEIVED :String = "msgReceived"; /** * Access the message name. @@ -50,7 +50,7 @@ public class MessageReceivedEvent extends EZEvent public function MessageReceivedEvent ( gameCtrl :Object, messageName :String, value :Object) { - super(TYPE, gameCtrl); + super(MESSAGE_RECEIVED, gameCtrl); _name = messageName; _value = value; } diff --git a/src/as/com/threerings/ezgame/PropertyChangedEvent.as b/src/as/com/threerings/ezgame/PropertyChangedEvent.as index b55c5104..a64db916 100644 --- a/src/as/com/threerings/ezgame/PropertyChangedEvent.as +++ b/src/as/com/threerings/ezgame/PropertyChangedEvent.as @@ -30,7 +30,7 @@ import flash.events.Event; public class PropertyChangedEvent extends EZEvent { /** The type of a property change event. */ - public static const TYPE :String = "PropChanged"; + public static const PROPERTY_CHANGED :String = "PropChanged"; /** * Get the name of the property that changed. @@ -71,7 +71,7 @@ public class PropertyChangedEvent extends EZEvent gameCtrl :Object, propName :String, newValue :Object, oldValue :Object, index :int = -1) { - super(TYPE, gameCtrl); + super(PROPERTY_CHANGED, gameCtrl); _name = propName; _newValue = newValue; _oldValue = oldValue; diff --git a/src/as/com/threerings/ezgame/SizeChangedEvent.as b/src/as/com/threerings/ezgame/SizeChangedEvent.as index 4f621d13..59382d03 100644 --- a/src/as/com/threerings/ezgame/SizeChangedEvent.as +++ b/src/as/com/threerings/ezgame/SizeChangedEvent.as @@ -32,7 +32,7 @@ import flash.geom.Point; public class SizeChangedEvent extends EZEvent { /** The type of this event. */ - public static const TYPE :String = "SizeChanged"; + public static const SIZE_CHANGED :String = "SizeChanged"; /** * Get the size of the game area, expressed as a Point @@ -48,7 +48,7 @@ public class SizeChangedEvent extends EZEvent */ public function SizeChangedEvent (gameCtrl :Object, size :Point) { - super(TYPE, gameCtrl); + super(SIZE_CHANGED, gameCtrl); _size = size; } diff --git a/src/as/com/threerings/ezgame/UserChatEvent.as b/src/as/com/threerings/ezgame/UserChatEvent.as index c816e277..24ebcb50 100644 --- a/src/as/com/threerings/ezgame/UserChatEvent.as +++ b/src/as/com/threerings/ezgame/UserChatEvent.as @@ -29,7 +29,7 @@ import flash.events.Event; public class UserChatEvent extends EZEvent { /** The type of a property change event. */ - public static const TYPE :String = "UserChat"; + public static const USER_CHAT :String = "UserChat"; /** * Get the name of the user who spoke. @@ -52,7 +52,7 @@ public class UserChatEvent extends EZEvent */ public function UserChatEvent (gameCtrl :Object, speaker :int, message :String) { - super(TYPE, gameCtrl); + super(USER_CHAT, gameCtrl); _speaker = speaker; _message = message; }