Hello,
I try to draw a symbol with the draw as:
layerSymbol.draw(m_sprite, graphic.geometry, graphic.attributes, null);
I get this error for SimpleMarkerSymbol:
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()
I get this error for SimpleMarkerSymbol:
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::PictureMarkerSymbol/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()
Do you know what's wrong? I do not know what property is null since it is in the code of the API from ESRI.
Thank you for your help.