Sohail Sarfaraz
Sohail Sarfaraz

Reputation: 11

context menu is not display in web project in flex

context menu is working well in desktop project but not display in web project...........kindly help and suggest if anyone has some suitable answer

Upvotes: 0

Views: 156

Answers (1)

Geek Devigner
Geek Devigner

Reputation: 369

In main.mxml, on application initialize, run this function:

private function init():void {

   var customMenuItem1:ContextMenuItem = new ContextMenuItem(“WHATEVER DUDE”);

   var contextMenuCustomItems:Array = application.contextMenu.customItems;

   contextMenuCustomItems.push(customMenuItem1);

}

Upvotes: 3

Related Questions