I have HTML that includes characters such as the trademark "TM", as superscript (& trade;). In regular HTML, I would use "™" or ™ to display TrademarkTM. However, I cannot find a way to import HTML like this into Flex and display it correctly. I have similar problems with the <li> .
My HTML:
<p>This information is intellectual property of My Company™.</p> <p>Available features:</p> <li>Feature 1</li> <li>Feature 2</li> <li>Feature 3</li> <li>Feature 4</li> <p>COPYRIGHT INFORMATION:</p> <p>Copyright © 2008, My Company. All rights reserved.</p>
The only way I worked was to copy and paste the content directly into Flex:
<mx:Text width="100%" height="100%"> <mx:htmlText> <![CDATA[ This information is intellectual property of My Companyβ’. Available features: β’ Feature 1 β’ Feature 2 β’ Feature 3 β’ Feature 4 COPYRIGHT INFORMATION: Copyright Β© 2008, My Company. All rights reserved. ]]> </mx:htmlText> </mx:Text>
I want to use an external HTML file that can be imported into my Flex application at runtime, so I donβt need to recompile the application to easily change the content.
I have heard about too many problems with the iFrame parameter, so I want to avoid this if possible.
Does anyone have any other good suggestions to solve this problem?
Thanks.
html flex actionscript text
Eric Belair
source share