As3 Array

Hi… i m bit stuck…

i have this code



    private function complete (e : Event) : void
        {
            var xml : XML = new XML(e.target.data);
            XML.ignoreWhitespace = true;
            obArray = new Array()

            var list : XMLList = xml.menu;
            
            
            ob = new Object();
            for(var i : int = 0;i < list.length(); i++)
            {    
                ob.name = list*.name;
                ob.contents = list*.contents;
                obArray.push(ob);
                trace("1: ",obArray*.name);
            }
        }


the above contents traces
1: Home
1: About
1: Our Services
1: How We Work
1: portfolio
1: news
1: Contact

and then i try to call it by


private function clickHome (e : MouseEvent) : void
        {

            for (var i : int = 0;i < obArray.length; i++) {
                trace(obArray*.name);
                
            }
        
        }

and the following happens

Contact
Contact
Contact
Contact
Contact
Contact
Contact

but im refering to the same array…