Components Flex


    initialize="initData()">
    
        
        import mx.collections.*;
        public var myArray:Array = ["A", "B", "C", "D", "E", "F"];
        
        [Bindable]
        public var myAC:ArrayCollection;
        public function initData():void {
            myAC = new ArrayCollection(myArray);
        }
        public function changeCollection():void {
            var oldLength:int = myAC.length;
        
            var removedItem:String = String(myAC.removeItemAt(0));
            
            ta1.text+=".\nRemoved " + removedItem;
        }