for(var p:Number =0; p < _polyResult.rings.length; p++) { var _polygonSingleR:Polygon = new Polygon(); _polygonSingleR.rings = []; _polygonSingleR.rings.push(_polyResult.rings); _polygonSingleR.spatialReference = _spatialReference; for(var q:Number =0; q < _polyResult.rings.length; q++) { if(p != q) { var _arrMapPoints:Array = _polyResult.rings
; var _temp:Number = 0; for(var r:Number =0; r < _arrMapPoints.length; r++) { var _mapPoint:MapPoint = _arrMapPointsas MapPoint; if(_polygonSingleR.contains(_mapPoint)) { _temp++; } } if(_temp == _arrMapPoints.length) { _arrValidatedGaps.push(_polyResult.rings ); } } } }