Hello,
I would do the same but not with ImageFlareElementSymbol but SimpleMarkerSymbol.
So he returned in the following code function updateDisplayList:
const layerSymbol:Symbol = getLayerSymbol(flareContainer);
if (layerSymbol)
{
layerSymbol.draw(m_sprite, graphic.geometry, graphic.attributes, null);
}
This plant has this line:
layerSymbol.draw(m_sprite, graphic.geometry, graphic.attributes, null);
I get this error:
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
at com.esri.ags.symbols::SimpleMarkerSymbol/draw()
at ImageFlareElement/updateDisplayList()
at ImageFlareContainer/updateDisplayListFlare()
at ImageFlareContainer/updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()
Can you help me?
Thank you.