Apache flex 上下文菜单未显示在flex的web项目中
上下文菜单在桌面项目中运行良好,但在web项目中未显示……….如果有人在Apache flex 上下文菜单未显示在flex的web项目中,apache-flex,actionscript-3,Apache Flex,Actionscript 3,上下文菜单在桌面项目中运行良好,但在web项目中未显示……….如果有人在main.mxml中有合适的答案,请提供帮助和建议。在应用程序初始化时,运行此功能: private function init():void { var customMenuItem1:ContextMenuItem = new ContextMenuItem(“WHATEVER DUDE”); var contextMenuCustomItems:Array = application.contextMe
main.mxml中有合适的答案,请提供帮助和建议。在应用程序初始化时,运行此功能:
private function init():void {
var customMenuItem1:ContextMenuItem = new ContextMenuItem(“WHATEVER DUDE”);
var contextMenuCustomItems:Array = application.contextMenu.customItems;
contextMenuCustomItems.push(customMenuItem1);
}
在main.mxml
中,在应用程序初始化时,运行此函数:
private function init():void {
var customMenuItem1:ContextMenuItem = new ContextMenuItem(“WHATEVER DUDE”);
var contextMenuCustomItems:Array = application.contextMenu.customItems;
contextMenuCustomItems.push(customMenuItem1);
}