HelloIf you have an idea how to retrieve the FeatureLayer dynamically from the map or service.the big problem I have is that the layer is explicitly defined in the code:
<esri:FeatureLayer id="fireAreas" mode="snapshot" outFields="*" url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/2">