Solved! Go to Solution.
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags" xmlns:mx="library://ns.adobe.com/flex/mx" initialize="application1_initializeHandler(event)"> <fx:Script> <![CDATA[ import com.esri.ags.symbols.PictureMarkerSymbol; import mx.controls.CheckBox; import mx.events.FlexEvent; [Bindable] private var tempSymbol1:PictureMarkerSymbol; protected function application1_initializeHandler(event:FlexEvent):void { tempSymbol1 = new PictureMarkerSymbol(); tempSymbol1.source = CheckBox; // has to be the class itself, right now it cannot be an instance of the class tempSymbol1.width = 50; tempSymbol1.height = 50; } ]]> </fx:Script> <esri:Map> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer"/> <esri:GraphicsLayer symbol="{tempSymbol1}"> <esri:Graphic> <esri:MapPoint x="0" y="0"/> </esri:Graphic> </esri:GraphicsLayer> </esri:Map> </s:Application>
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:esri="http://www.esri.com/2008/ags" xmlns:mx="library://ns.adobe.com/flex/mx" initialize="application1_initializeHandler(event)"> <fx:Script> <![CDATA[ import com.esri.ags.symbols.PictureMarkerSymbol; import mx.controls.CheckBox; import mx.events.FlexEvent; [Bindable] private var tempSymbol1:PictureMarkerSymbol; protected function application1_initializeHandler(event:FlexEvent):void { tempSymbol1 = new PictureMarkerSymbol(); tempSymbol1.source = TestGraphics; tempSymbol1.width = 50; tempSymbol1.height = 50; } ]]> </fx:Script> <esri:Map> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer"/> <esri:GraphicsLayer symbol="{tempSymbol1}"> <esri:Graphic> <esri:MapPoint x="0" y="0"/> </esri:Graphic> </esri:GraphicsLayer> </esri:Map> </s:Application>
<?xml version="1.0" encoding="utf-8"?> <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="30" height="50"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <s:Ellipse height="100%" width="100%"> <s:fill> <s:SolidColor color="0xff0000"/> </s:fill> </s:Ellipse> </s:Group>