I want to draw sprite on Graphics layer like this:
var sp:SpriteVisualElement = new SpriteVisualElement();
sp.graphics.beginFill(0x00ff00,1);
sp.graphics.drawRoundRect(10,10,100,100,150,150);
sp.graphics.endFill();
var myGraphicMarker:Graphic = new Graphic();
myGraphicMarker.symbol.draw(sp,geom,null,map);
graphicsLayer.add(myGraphicMarker);
It complaints at line myGraphicMarker.symbol.draw(sp,geom,null,map); about that TypeError: Error #1009: Cannot access a property or method of a null object reference. Can anyone please guide me what to pass instead of null to make this sprite drawn. Thanks
