<?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: Label Binding From XML in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/label-binding-from-xml/m-p/331100#M7916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Binding on read-only properties will only trigger if you tell it what event to watch for and you dispatch that event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is an example of the metadata you'd add to each property:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Bindable(event="fooChanged")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be easier to just make your properties read/write.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 May 2010 20:57:57 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2010-05-27T20:57:57Z</dc:date>
    <item>
      <title>Label Binding From XML</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/label-binding-from-xml/m-p/331099#M7915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an actionscript class that reads strings values from an XML file and assigns them to private class variables.&amp;nbsp; The class is declared as [Bindable].&amp;nbsp; I have a get method declared for each private variable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public function get buttonLabel():String&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return _buttonLabel || "Search";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then use the value to populate the label attribute of the MXML tag:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;mx:Button id="btnSearch" label="{labelData.buttonLabel}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem that I am having is that sometimes when the application is displayed no label appears and the user has to refresh to see all the appropriate labels.&amp;nbsp; The users have indicated that this makes the application difficult to use as they are unaware of what to enter in text boxes or other items as there are no labels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I know this is more of a pure FLEX question than an ArcGIS API question but I hope that since that someone would have possibly had a similar problem or might have a suggestion for how to improve the reliability of the labels.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 18:35:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/label-binding-from-xml/m-p/331099#M7915</guid>
      <dc:creator>SpencerKerns</dc:creator>
      <dc:date>2010-05-27T18:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Label Binding From XML</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/label-binding-from-xml/m-p/331100#M7916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Binding on read-only properties will only trigger if you tell it what event to watch for and you dispatch that event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is an example of the metadata you'd add to each property:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Bindable(event="fooChanged")]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be easier to just make your properties read/write.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 20:57:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/label-binding-from-xml/m-p/331100#M7916</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-05-27T20:57:57Z</dc:date>
    </item>
  </channel>
</rss>

