... historic.addEventListener(LayerEvent.UPDATE_END, onHistoricUpdateEnd); ... protected function onHistoricUpdateEnd(event:LayerEvent):void { if (event.updateSuccess) { trace("layer 'historic' update success"); var historicGraphicProvider:ArrayCollection = historic.graphicProvider as ArrayCollection; if (historicGraphicProvider && historicGraphicProvider.length > 0) { trace(historicGraphicProvider.length + " features found"); featureset = new FeatureSet(historicGraphicProvider.toArray()); ... } } else { trace("layer 'historic' update not success"); } } ...