0 Replies Latest reply on Nov 22, 2011 12:23 PM by eegz

    How to make RichEditableText hyperlink work with resourceManager?

    eegz

      I have the following code creating a working hyperlink:

       

      <s:RichEditableText id="myText"

          editable="false"

          focusEnabled="false">

          <s:textFlow>

              <s:TextFlow>

                  Click <s:a href="http://www.google.com" click="linkelement1_clickHandler(event)">here</s:a>.

              </s:TextFlow>

          </s:textFlow>

      </s:RichEditableText>

       

       

      My finished version needs to work off a resource file, but the below does not work (the <s:a> tags are not processed but show up in the final string).

       

      <s:RichEditableText id="myText"

          editable="false"

          focusEnabled="false">

          <s:textFlow>

              <s:TextFlow>

                  {resourceManager.getString('LocalResources', 'STRING_BLAH')}

              </s:TextFlow>

          </s:textFlow>

      </s:RichEditableText>

       

      In the resource file:

      STRING_BLAH = Click <s:a href="http://www.google.com" click="linkelement1_clickHandler(event)">here</s:a>.

       

       

      Any hints as to how I can get the resource manager derived string processed as a link?