<?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: Using Graphic Attributes in TextSymbol's HTMLText in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-graphic-attributes-in-textsymbol-s-htmltext/m-p/331931#M7920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The way I've done it is to create a variable that contains the text with the attributes, then assign that variable to the htmlText property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private var attributeText:String;

attributeText = "This is the Transect ID: " + graphic.attributes.TransectID;

&amp;lt;mx:Text width="100%" paddingLeft="10" paddingTop="10" htmlText="{attributeText}"/&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:43:12 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2021-12-11T15:43:12Z</dc:date>
    <item>
      <title>Using Graphic Attributes in TextSymbol's HTMLText</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-graphic-attributes-in-textsymbol-s-htmltext/m-p/331930#M7919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to use a graphic's attribute in a textSymbol's HTMLText property?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the you can add an attribute via the textAttribute property, but I would like to have an HTMLText that equals something like "Here is one attribute: {attributeOne} &amp;lt;br&amp;gt; Here is the second: {attributeTwo}".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas (other than extending the textSymbol class)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 14:59:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-graphic-attributes-in-textsymbol-s-htmltext/m-p/331930#M7919</guid>
      <dc:creator>MattCharton</dc:creator>
      <dc:date>2011-11-15T14:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Graphic Attributes in TextSymbol's HTMLText</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-graphic-attributes-in-textsymbol-s-htmltext/m-p/331931#M7920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The way I've done it is to create a variable that contains the text with the attributes, then assign that variable to the htmlText property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private var attributeText:String;

attributeText = "This is the Transect ID: " + graphic.attributes.TransectID;

&amp;lt;mx:Text width="100%" paddingLeft="10" paddingTop="10" htmlText="{attributeText}"/&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-graphic-attributes-in-textsymbol-s-htmltext/m-p/331931#M7920</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T15:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Graphic Attributes in TextSymbol's HTMLText</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-graphic-attributes-in-textsymbol-s-htmltext/m-p/331932#M7921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This would be a great solution, kenbuja, if I were assigning the symbol to a specific graphic, but I would rather assign the TextSymbol to the entire GraphicsLayer (and yes I know I could cludge together a solution by looping through the graphics... but I would extend the class before doing that).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for not specifying.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 17:07:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/using-graphic-attributes-in-textsymbol-s-htmltext/m-p/331932#M7921</guid>
      <dc:creator>MattCharton</dc:creator>
      <dc:date>2011-11-15T17:07:56Z</dc:date>
    </item>
  </channel>
</rss>

