Avoid calling the type constant for an event with only one type TYPE.

Follow actionscript convention and create a reasonable name for it.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4919 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2008-01-08 01:35:01 +00:00
parent a5b132757b
commit 460d826d91
4 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ import flash.events.IEventDispatcher;
public class CommandEvent extends Event
{
/** The event type for all controller events. */
public static const TYPE :String = "commandEvt";
public static const COMMAND :String = "commandEvt";
/**
* Use this method to dispatch CommandEvents.
@@ -98,7 +98,7 @@ public class CommandEvent extends Event
*/
public function CommandEvent (command :String, arg :Object)
{
super(TYPE, true, true);
super(COMMAND, true, true);
if (_blockConstructor) {
throw new IllegalOperationError();
}