Flex遍历ValueObject对象

//_menu 为遍历对象           
            var objInfo:Object = ObjectUtil.getClassInfo(_menu);
            var fieldName:Array = objInfo["properties"] as Array;
            for each(var q:QName in fieldName){
                //q 属性名称,value 对应的值
                var value:String = _menu[q.localName] as String;
                trace(q+" "+value);
            }
摘自:http://www.blogjava.net/Cana/articles/356771.html

你可能感兴趣的:(object)