Data Model Flex


    
            
        private var xmlItems:XML =
                            
                                A
                                3.5
                            
                            
                                B
                                1.5
                            
                        

        private var arr:Array;
        private function init():void {
            arr = new Array();
            for each(var xml:XML in xmlItems.item) {
                arr.push(Number(xml.@id));
            }
        }