Container Flex


    xmlns:mx="http://www.adobe.com/2006/mxml">
    
        
            import mx.effects.DefaultListEffect;
            import mx.collections.ArrayCollection;
            
            [Bindable]
            private var dataCollection:ArrayCollection = new ArrayCollection();
            
            private function removeFromList():void {
                var index : int = dataCollection.getItemIndex( tileList.selectedItem );
                dataCollection.removeItemAt( index );
            }
            private function addToList():void {
                dataCollection.addItemAt( Math.random(), 0);
            }