<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: select map graphics text and change color to show selection in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634879#M14127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you do graphic stuff try copying it to intersact with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var gra:Graphic = mx.utils.ObjectUtil.copy(g) as Graphic;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 16:19:39 GMT</pubDate>
    <dc:creator>andrewj_ca</dc:creator>
    <dc:date>2011-03-30T16:19:39Z</dc:date>
    <item>
      <title>select map graphics text and change color to show selection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634871#M14119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any help appreciated....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I'm trying to accomplish.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The user has the ability to add map text graphics vi mappoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After the map has multiple pieces of map text, allow the user to interactively select the text and make graphic adjustments.... ie color, size, location, etc....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've reviewed alot of the code to select the text using graphics contained within the map extent, and then can move the text to a new location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is, when the user selects the text it needs to change color to indicate the text has been selected.&amp;nbsp; This part works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After moving the text, it should return to it's original color.... ie original textsymbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been trying to accomplish this by the following:&amp;nbsp; once the user selects the text, I save the textsymbol to a temp textsymbol.&amp;nbsp; I then change the selected text to a defined text symbol.&amp;nbsp; Once the text has been repositioned on the map, I then set the text back to it's original state via the temp textsymbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This appears to work initially.&amp;nbsp; However, after mulitiple selections of text and moving them around the process doesn't work properly.&amp;nbsp; Various other text on the map changes to the selection color.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following method as shown in the forum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (var i:Number = 0; i &amp;lt; myGraphicsLayer.graphicProvider.length; i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; graphic = myGraphicsLayer.graphicProvider&lt;I&gt; as Graphic;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (extent.contains(MapPoint(graphic.geometry)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sym = graphic.symbol as TextSymbol;&amp;nbsp;&amp;nbsp; //gets info from selected text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; selText.text = Sym.text;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //graphicName = graphic.name.toString();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //Alert.show(graphicName);&amp;nbsp; //gets graphic name&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; graphic.symbol = selText;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; results.push(graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //else if point was previously highlighted, reset its symbology&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; else if (graphic.symbol == selText)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; graphic.symbol = aText;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; AdjustGraphics.activate(1, results);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This actually works, except all text which is not selected reverts back to a set textsymbol.&amp;nbsp; If the map has alot of text with various textsymbols, they all get reset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My thoughts were to try and select the mappoint(ie text).... name it or id it.... change it to the selection color...... make location adjustments...... then restore the text to its color, by selecting the graphic based on the temp name/id I assigned it.&amp;nbsp; Is this possible?&amp;nbsp; Does anyone have a more effective way to accomplish what I'm attempting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanx again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie Quinlan&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;G.I.S. Coordinator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Okaloosa County Property Appraiser&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 12:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634871#M14119</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2011-03-11T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: select map graphics text and change color to show selection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634872#M14120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eddie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you considered using the events of the graphic itself rather than iterating the graphicsLayer everytime? I typically use the mouse click event of my graphic to select it.&amp;nbsp; This will be much more efficient when you start getting into more items on the graphicsLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 16:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634872#M14120</guid>
      <dc:creator>andrewj_ca</dc:creator>
      <dc:date>2011-03-11T16:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: select map graphics text and change color to show selection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634873#M14121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My street view widget actually works on this premise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=f069d8a3aa304e29a432b48e5f64ca74"&gt;http://www.arcgis.com/home/item.html?id=f069d8a3aa304e29a432b48e5f64ca74&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at the code I use for the drag and drop of the street view icon (PictureMarkerSymbol)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 16:03:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634873#M14121</guid>
      <dc:creator>andrewj_ca</dc:creator>
      <dc:date>2011-03-11T16:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: select map graphics text and change color to show selection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634874#M14122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your code was easy to follow and you pointed me in the right direction.&amp;nbsp; Your method was definitely easier than mine.&amp;nbsp; If this is helpful to anyone here is how i did it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. first i turn on graphic listner for all graphics in the layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; private function TurnGraphicListnerOn():void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //&amp;nbsp; Turns on Graphic Listner for each graphic in graphics layer so selections can be made.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; for each(addedGraphic in myGraphicsLayer.graphicProvider)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (addedGraphic.hasEventListener(MouseEvent.CLICK)==false)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addedGraphic.addEventListener(MouseEvent.CLICK, Graphic_Clicked, false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp;&amp;nbsp; Then select graphic by mouse click.&amp;nbsp; Change color by predefined textsymbol.&amp;nbsp; Then move text or add code to edit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; private function Graphic_Clicked(event:MouseEvent):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; results = []; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; SelGraphic = Graphic(event.currentTarget);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Sym = new TextSymbol();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Sym = SelGraphic.symbol as TextSymbol;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; SelText.text = Sym.text; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; SelGraphic.symbol = SelText;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; results.push(SelGraphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; AdjustGraphics.activate(1, results); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp; Reset text back to original color........&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function End_Graphic_Move():void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; InitText.text = Sym.text;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; InitText.color = Sym.color;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; SelGraphic.symbol = InitText;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; AdjustGraphics.deactivate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 14:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634874#M14122</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2011-03-15T14:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: select map graphics text and change color to show selection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634875#M14123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;PS, in addition to step #3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you may want to remove the event listner for all the graphics&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for each(addedGraphic in myGraphicsLayer.graphicProvider)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (addedGraphic.hasEventListener(MouseEvent.CLICK)==true)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; addedGraphic.removeEventListener(MouseEvent.CLICK, Graphic_Clicked);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 14:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634875#M14123</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2011-03-15T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: select map graphics text and change color to show selection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634876#M14124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI Eddie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To achieve this task is simple. First you have to maintain only one graphic object.Then add mouse click listener for graphical layer in init method. Then add graphical layer to map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When clicking graphic object means your current object is graphcial layer and target object is graphic object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now u have graphic object. Then apply change event for color picker component andy apply color for graphic object by using symbols inside method of change handler.And also if u want to remove from layer just do graphicalLayer.remove(event.traget) inside click handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need any help in this please fell free to contact me on &lt;/SPAN&gt;&lt;A href="mailto:vhemachandra@gmail.com"&gt;vhemachandra@gmail.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chandra.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any help appreciated....&lt;BR /&gt;&lt;BR /&gt;Here is what I'm trying to accomplish.&lt;BR /&gt;&lt;BR /&gt;The user has the ability to add map text graphics vi mappoint.&lt;BR /&gt;After the map has multiple pieces of map text, allow the user to interactively select the text and make graphic adjustments.... ie color, size, location, etc....&lt;BR /&gt;&lt;BR /&gt;I've reviewed alot of the code to select the text using graphics contained within the map extent, and then can move the text to a new location.&lt;BR /&gt;&lt;BR /&gt;My problem is, when the user selects the text it needs to change color to indicate the text has been selected.&amp;nbsp; This part works.&lt;BR /&gt;After moving the text, it should return to it's original color.... ie original textsymbol.&lt;BR /&gt;I've been trying to accomplish this by the following:&amp;nbsp; once the user selects the text, I save the textsymbol to a temp textsymbol.&amp;nbsp; I then change the selected text to a defined text symbol.&amp;nbsp; Once the text has been repositioned on the map, I then set the text back to it's original state via the temp textsymbol.&lt;BR /&gt;This appears to work initially.&amp;nbsp; However, after mulitiple selections of text and moving them around the process doesn't work properly.&amp;nbsp; Various other text on the map changes to the selection color.&lt;BR /&gt;&lt;BR /&gt;I tried the following method as shown in the forum:&lt;BR /&gt;for (var i:Number = 0; i &amp;lt; myGraphicsLayer.graphicProvider.length; i++)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; graphic = myGraphicsLayer.graphicProvider&lt;I&gt; as Graphic;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; if (extent.contains(MapPoint(graphic.geometry)))&lt;BR /&gt;&amp;nbsp; {&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Sym = graphic.symbol as TextSymbol;&amp;nbsp;&amp;nbsp; //gets info from selected text&lt;BR /&gt;&amp;nbsp;&amp;nbsp; selText.text = Sym.text;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; //graphicName = graphic.name.toString();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; //Alert.show(graphicName);&amp;nbsp; //gets graphic name&lt;BR /&gt;&amp;nbsp;&amp;nbsp; graphic.symbol = selText;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; results.push(graphic);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; //else if point was previously highlighted, reset its symbology&lt;BR /&gt;&amp;nbsp; else if (graphic.symbol == selText)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; graphic.symbol = aText;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt; }&lt;BR /&gt; AdjustGraphics.activate(1, results);&lt;BR /&gt;&lt;BR /&gt;This actually works, except all text which is not selected reverts back to a set textsymbol.&amp;nbsp; If the map has alot of text with various textsymbols, they all get reset.&lt;BR /&gt;&lt;BR /&gt;My thoughts were to try and select the mappoint(ie text).... name it or id it.... change it to the selection color...... make location adjustments...... then restore the text to its color, by selecting the graphic based on the temp name/id I assigned it.&amp;nbsp; Is this possible?&amp;nbsp; Does anyone have a more effective way to accomplish what I'm attempting?&lt;BR /&gt;&lt;BR /&gt;thanx again,&lt;BR /&gt;&lt;BR /&gt;Eddie Quinlan&lt;BR /&gt;G.I.S. Coordinator&lt;BR /&gt;Okaloosa County Property Appraiser&lt;/I&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 06:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634876#M14124</guid>
      <dc:creator>hemachandra</dc:creator>
      <dc:date>2011-03-17T06:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: select map graphics text and change color to show selection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634877#M14125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eddie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;for each(addedGraphic in myGraphicsLayer.graphicProvider)&lt;BR /&gt;{ &lt;BR /&gt;if (addedGraphic.hasEventListener(MouseEvent.CLICK)==true)&lt;BR /&gt;{&lt;BR /&gt;addedGraphic.removeEventListener(MouseEvent.CLICK, Graphic_Clicked);&lt;BR /&gt;} &lt;BR /&gt;} &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rather that iterating the graphics to assign the eventlistener, you can add the eventlistener at the same time you first add the graphic to the graphicslayer. you can also do this by utilizing the graphicslayer event for "graphic added".&amp;nbsp; Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 10:31:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634877#M14125</guid>
      <dc:creator>andrewj_ca</dc:creator>
      <dc:date>2011-03-17T10:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: select map graphics text and change color to show selection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634878#M14126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you both for the help.&amp;nbsp; I almost have my menu working as it should.&amp;nbsp; The problem i have now is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a text menu where the user can input text, font, size, etc.........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then they "click on the map" and the text is added and can still be adjusted at this point thru the menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the user wants to add another piece of text.......&amp;nbsp; So, they click "add" on menu and input the text.&amp;nbsp; However, when the click on the map it adds the text but is still editing the previously added text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't seem to disconnect the previously added text/symbol/graphic on the map from the text menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried New Graphic, New Text, New Symbol, resetting all the properties of the graphic, but it still keeps editing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i continue to add text (say a 3rd and 4th piece) the 1st and 2nd piece retain the correct properties.&amp;nbsp; Its only the previously added text that continues to be adjusted, when adding a new piece of text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this makes sense.&amp;nbsp; I know I must be missing one piece of code to save/stop editing the previous text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 16:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634878#M14126</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2011-03-30T16:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: select map graphics text and change color to show selection</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634879#M14127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you do graphic stuff try copying it to intersact with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var gra:Graphic = mx.utils.ObjectUtil.copy(g) as Graphic;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 16:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/select-map-graphics-text-and-change-color-to-show/m-p/634879#M14127</guid>
      <dc:creator>andrewj_ca</dc:creator>
      <dc:date>2011-03-30T16:19:39Z</dc:date>
    </item>
  </channel>
</rss>

