<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="init()" viewSourceURL="srcview/index.html"> <mx:Script> <![CDATA[ import MyContextMenuManager; [Bindable] public var myArray:Array = new Array( "List Item One", "List Item Two"); public function init():void { var myCM:MyContextMenuManager = new MyContextMenuManager(); myList.contextMenu = myCM.BuildContextMenu(); } ]]> </mx:Script> <mx:List id="myList" dataProvider="{myArray}" x="67" y="78" width="237" height="256" itemRenderer="listRenderer"></mx:List> </mx:Application>