Not sure what you are trying to do. If you want the html rendered in the
text area, set the htmlText property:
<mx:TextArea x="170" y="147" height="229" width="248" id="ta">
<mx:htmlText>
<![CDATA[<html>
<body>
Hello
</body>
</html>]]>
</mx:htmlText>
</mx:TextArea>
If you want to actually display the markup as a string, set the text
property:
<mx:TextArea x="170" y="147" height="229" width="248" id="ta">
<mx:text>
<![CDATA[<html>
<body>
Hello
</body>
</html>]]>
</mx:text>
</mx:TextArea>
HTH,
Ryan
From: [email protected] [mailto:[email protected]] On
Behalf Of markflex2007
Sent: Tuesday, January 27, 2009 2:23 PM
To: [email protected]
Subject: [flexcoders] How to assign html tag to text property
Hi,
I try the following code but I get error,please give me a idea to fix
it.
Thanks
Mark
<mx:TextArea x="170" y="147" height="229" width="248" id="ta">
<mx:text =
"<html>
<body>
Hello
</body>
</html>">
</mx:TextArea>
This message is private and confidential. If you have received it in error,
please notify the sender and remove it from your system.