<?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 passing map controls between mxml files in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-map-controls-between-mxml-files/m-p/624326#M13852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; i want to pass map control from my main file to other mxml file.where i can get the all layers and on off from that component.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Feb 2012 19:07:34 GMT</pubDate>
    <dc:creator>NadirHussain</dc:creator>
    <dc:date>2012-02-05T19:07:34Z</dc:date>
    <item>
      <title>passing map controls between mxml files</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-map-controls-between-mxml-files/m-p/624326#M13852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; i want to pass map control from my main file to other mxml file.where i can get the all layers and on off from that component.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2012 19:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-map-controls-between-mxml-files/m-p/624326#M13852</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2012-02-05T19:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: passing map controls between mxml files</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-map-controls-between-mxml-files/m-p/624327#M13853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nadir,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; If you make the map a public var in your main (index.mxml) mxml file than you can get access to it from other mxml file by using code like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import mx.core.FlexGlobals;
FlexGlobals.topLevelApplication.myMap;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;IMG src="http://gis.calhouncounty.org/FlexViewer2.5/Answer.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:35:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-map-controls-between-mxml-files/m-p/624327#M13853</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T02:35:37Z</dc:date>
    </item>
  </channel>
</rss>

