List With Hard Coded Array
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Array id="myData"> <mx:String>A</mx:String> <mx:String>B</mx:String> <mx:String>C</mx:String> </mx:Array> <mx:List id="sizeList" width="300" dataProvider="{myData}"/> <mx:HBox> <mx:Label text="New Item:"/> <mx:TextInput id="itemInput"/> <mx:Button label="Add Item" click="sizeList.dataProvider.addItem(itemInput.text)"/> </mx:HBox> </mx:Application>