Is there possible to add a simple hyperlink inside the text area? For example, (http//:www.esri.com).
Thank you.
May
See if this works for you!<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:esri="http://www.esri.com/2008/ags"
xmlns:s="library://ns.adobe.com/flex/spark"
pageTitle="Didum Test" creationComplete="getString();" >
<!--
This sample displays a clickable url in a TextArea
-->
<fx:Script>
<![CDATA[
//import mx.controls.TextArea;
private function getString():void{
var myStr:String = "<a href='http://www.esri.com/' target='_blank'>Click me (ESRI Page)</a>"
+ "<br /><b> to see if a page opens up!</b>";
myTxtArea.width = 200; // numeric choice
myTxtArea.height = 50; // numeric choice
myTxtArea.left = 100;
myTxtArea.top = 100;
myTxtArea.editable = false; // a Boolean data type choice
myTxtArea.htmlText = myStr;
}
]]>
</fx:Script>
<fx:Declarations>
<!--Add visual elements-->
</fx:Declarations>
<mx:TextArea id="myTxtArea" color="0x0000ff"/>
</s:Application>