Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex 上下文菜单未显示在flex的web项目中_Apache Flex_Actionscript 3 - Fatal编程技术网

Apache flex 上下文菜单未显示在flex的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

上下文菜单在桌面项目中运行良好,但在web项目中未显示……….如果有人在
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);

}