Tag Archives: customItems

Adding custom context menu items to a Flex 4 application

In a previous example, “Adding custom context menu items to a Flex application”, we saw you could add custom context menu items to a Flex application by creating new ContextMenuItem objects and adding them to the Flex application’s customItems array (via the contextMenu property).

The following example shows how you can add custom context menu items to a Flex 4 application by creating new ContextMenuItem objects and adding them to the Flex application’s customItems array (via the contextMenu property, and using the FlexGlobals.topLevelApplication property instead of the application property).

Full code after the jump.

Continue reading Adding custom context menu items to a Flex 4 application