<?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 z-Index in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/z-index/m-p/677923#M15214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi I have a graphics layer which i have no control over the order (ie in what order i receive them from a async call&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i need to move a particular graphic right to the very back&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it is the only polygon in the graphic set (garunteed) how can i Do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2012 14:00:33 GMT</pubDate>
    <dc:creator>StevenColeman-Williams</dc:creator>
    <dc:date>2012-01-30T14:00:33Z</dc:date>
    <item>
      <title>z-Index</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/z-index/m-p/677923#M15214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi I have a graphics layer which i have no control over the order (ie in what order i receive them from a async call&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i need to move a particular graphic right to the very back&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it is the only polygon in the graphic set (garunteed) how can i Do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 14:00:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/z-index/m-p/677923#M15214</guid>
      <dc:creator>StevenColeman-Williams</dc:creator>
      <dc:date>2012-01-30T14:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: z-Index</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/z-index/m-p/677924#M15215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The GraphicsLayer watches for changes to its graphicsProvider.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/GraphicsLayer.html#graphicProvider" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/GraphicsLayer.html#graphicProvider&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public function moveGraphicToBack(graphic:Graphic):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphicsProvider:ArrayCollection = graphicsLayer.graphicProvider as ArrayCollection;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var index:int = graphicsProvider.getItemIndex(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (index &amp;gt; -1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsProvider.removeItemAt(index);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsProvider.addItemAt(graphic, 0);
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/z-index/m-p/677924#M15215</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2021-12-12T04:34:54Z</dc:date>
    </item>
  </channel>
</rss>

