Renamed ControllerEvent to CommandEvent.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4281 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-07-20 02:14:14 +00:00
parent 19219bb1a3
commit f1f6b3bdb2
5 changed files with 33 additions and 17 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ package com.threerings.util {
import flash.ui.ContextMenuItem;
import flash.events.ContextMenuEvent;
import com.threerings.events.ControllerEvent;
import com.threerings.mx.events.CommandEvent;
/**
*/
@@ -21,7 +21,7 @@ public class MenuUtil
new ContextMenuItem(caption, separatorBefore, enabled, visible);
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,
function (event :ContextMenuEvent) :void {
event.mouseTarget.dispatchEvent(new ControllerEvent(cmd, arg));
event.mouseTarget.dispatchEvent(new CommandEvent(cmd, arg));
});
return item;
}