<?xml version="1.0" encoding="utf-8"?>
<mx:Application name="Application_contextMenu_test"
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white"
initialize="init();" viewSourceURL="srcview/index.html">
<mx:Script>
<![CDATA[
private function init():void {
var customMenuItem1:ContextMenuItem = new ContextMenuItem("Flex SDK " + mx_internal::VERSION, false, false);
var customMenuItem2:ContextMenuItem = new ContextMenuItem("Player " + Capabilities.version, false, false);
var contextMenuCustomItems:Array = application.contextMenu.customItems;
contextMenuCustomItems.push(customMenuItem1);
contextMenuCustomItems.push(customMenuItem2);
}
]]>
</mx:Script>
<mx:Label text="Right click to see custom context menu items." />
</mx:Application>