<?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: Change subtitle from the ActionScript code in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-subtitle-from-the-actionscript-code/m-p/189949#M4426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Craig,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Be sure to post FlexViewer questions to the Flex Viewer forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is sort of a hack but there is not an exposed way by esri to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 1: in the WidgetManager.mxml change line 66 to public from private&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public var controlContainer:Group;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 2: Call this code from some where&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for (var c:int = 0; c &amp;lt; ViewerContainer.getInstance().widgetManager.controlContainer.numElements; c++){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var hc:* = ViewerContainer.getInstance().widgetManager.controlContainer.getElementAt(c);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hc.bannerSubtitle.text = "hello world";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch(error:Error){}
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 09:33:49 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2021-12-11T09:33:49Z</dc:date>
    <item>
      <title>Change subtitle from the ActionScript code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-subtitle-from-the-actionscript-code/m-p/189948#M4425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to change the subtitle of the viewer during user interaction as they switch from one custom theme to another.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to change the subtitle value from the ActionScript code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 14:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-subtitle-from-the-actionscript-code/m-p/189948#M4425</guid>
      <dc:creator>CraigPlacek</dc:creator>
      <dc:date>2010-12-28T14:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change subtitle from the ActionScript code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-subtitle-from-the-actionscript-code/m-p/189949#M4426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Craig,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Be sure to post FlexViewer questions to the Flex Viewer forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is sort of a hack but there is not an exposed way by esri to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 1: in the WidgetManager.mxml change line 66 to public from private&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;public var controlContainer:Group;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 2: Call this code from some where&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for (var c:int = 0; c &amp;lt; ViewerContainer.getInstance().widgetManager.controlContainer.numElements; c++){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var hc:* = ViewerContainer.getInstance().widgetManager.controlContainer.getElementAt(c);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hc.bannerSubtitle.text = "hello world";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch(error:Error){}
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:33:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-subtitle-from-the-actionscript-code/m-p/189949#M4426</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T09:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change subtitle from the ActionScript code</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-subtitle-from-the-actionscript-code/m-p/189950#M4427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That worked great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 15:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/change-subtitle-from-the-actionscript-code/m-p/189950#M4427</guid>
      <dc:creator>CraigPlacek</dc:creator>
      <dc:date>2010-12-28T15:55:20Z</dc:date>
    </item>
  </channel>
</rss>

