Trademark and Copyright Symbols in Flex
October 26, 2007 by vinod4flex
Try this program to display Trademark and Copyright symbol in Flex.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2006/mxml">
<mx:Script>
var trademarkSymbol = "\u2122";
var copyrightSymbol = "\u00A9";
</mx:Script>
<mx:Label text="Macromedia™"/>
<mx:Label text="Macromedia™"/>
<mx:Label text="Macromedia{trademarkSymbol}"/>
<mx:Label text="Macromedia©"/>
<mx:Label text="Macromedia©"/>
<mx:Label text="Macromedia{copyrightSymbol}"/>
</mx:Application>
Note that you always have to have 4 hex digits following \u. This isn't
the case with XML &#x escaping because it has a ; terminator.
Posted in Flex | No Comments Yet
Leave a Reply