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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user