You can set it via actionscript instead....
 
<mx:Text id="myText" width="100%" />
 
Then, in the actionscript:
 
myText.htmlText = valueObject.body;
 
 
Shan

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of grant.straker
Sent: Saturday, July 08, 2006 11:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding htmlText to a variable

I'm trying to use a variable to populate a htmlText control.

This works

<mx:Text width="90%" htmlText="{valueObject.body}" >
</mx:Text>

This doesn't

<mx:Text width="100%" >
<mx:htmlText>
<![CDATA[{valueObject.body}]]>
</mx:htmlText>
</mx:Text>

I need the later as my HTML contains a lot of markup that requires
escaping.

I'm sure its a very simple solution but I can't find any examples in
the docs.

Cheers

Grant


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006

Reply via email to