var _list:Array = new Array( {logType:"1"},{logType:"2"},{logType:"1"}, {logType:"2"},{logType:"1"},{logType:"1"},{logType:"1"}, {logType:"1"},{logType:"2"},{logType:"2"},{logType:"1"}, {logType:"1"},{logType:"1"},{logType:"1"},{logType:"2"}, {logType:"2"}, {logType:"1"}, {logType:"1"}, {logType:"1"} ); var _playerArr:Array=new Array(); var _messageArr:Array=new Array(); newArray(); //把得到的日志分类 function newArray():void { for (var i:uint = 0; i < _list.length; i++) { if (_list[i].logType == "1") { _playerArr.push(_list[i]); } if (_list[i].logType == "2") { _messageArr.push(_list[i]); } } trace("_playerArr---------"+_playerArr); trace("_messageArr---------"+_messageArr); }