geometry property (of the Graphic Class) geometry:Geometry The geometry that defines the graphic. If the geometry class is an IEventDispatcher, the Graphic will refresh itself when Event.CHANGE events on the geometry are thrown.
<fx:Declarations> <s:Graphic id="mapOverlay"> <s:Group> <s:Path id="mapOverlayPath" > <s:fill> <mx:SolidColor id="ovlayColor" color="0x000000" alpha="0.8"/> </s:fill> </s:Path> </s:Group> </s:Graphic> </fx:Declarations> //This code called from some function mapOverlayPath.data = "M 0 0 v " + map.height + " h " + map.width + " v -" + map.height + " v -" + map.width + " M 100 100"; mapOverlayPath.data += " v " + (map.height - 200) + " h " + (map.width - 200) + " v -" + (map.height - 200) + " Z"; map.staticLayer.addElement(mapOverlay);
map.staticLayer.addElement(image)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.