<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>

    <mx:Script>
        var trademarkSymbol = "\u2122";
        var copyrightSymbol = "\u00A9";
    </mx:Script>
        
    <mx:Label text="Macromedia&#8482;"/>
    <mx:Label text="Macromedia&#x2122;"/>
    <mx:Label text="Macromedia{trademarkSymbol}"/>

    <mx:Label text="Macromedia&#169;"/>
    <mx:Label text="Macromedia&#xA9;"/>
    <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.

- Gordon

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Tretola
Sent: Thursday, June 23, 2005 10:52 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Trademark Symbol

What about the copyrighht symbol ?

Rich

On 6/23/05, Gordon Smith <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> You almost had it, but you were missing a semicolon after the 8482. 
> 
>   
> 
> These three ways work: 
> 
>   
> 
> <?xml version="1.0" encoding="utf-8"?> 
> 
> <mx:Application
> xmlns:mx="http://www.macromedia.com/2003/mxml";> 
> 
>   
> 
>     <mx:Script> 
> 
>         var copyrightSymbol = "\u2122"; 
> 
>     </mx:Script> 
> 
>       
> 
>     <mx:Label text="Macromedia&#8482;"/> 
> 
>     <mx:Label text="Macromedia&#x2122;"/> 
> 
>     <mx:Label text="Macromedia{copyrightSymbol}"/> 
> 
>   
> 
> </mx:Application> 
> 
>   
> 
> The rules are: 
> 
>   
> 
> The MXML compiler follows the rules of XML and looks for escape
sequences
> starting with & and ending with ; 
> 
>   
> 
> However, it doesn't know about character names like &trade; and there
is no
> way to declare them. (This would make a good feature request.) 
> 
>   
> 
> The ActionScript compiler, which handles the parsing inside
<mx:Script>
> blocks, event handler attribute values, and databinding expressions,
follows
> the rules of JavaScript/EcmaScript and looks for escape sequences
starting
> with \u. 
> 
>   
> 
> - Gordon 
> 
>   
> 
> -----Original Message-----
>  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Erik Westra
>  Sent: Thursday, June 23, 2005 1:47 AM
>  To: flexcoders@yahoogroups.com
>  Subject: RE: [flexcoders] Trademark Symbol
>  
> 
>   
> 
> Just do it the simple way :) 
> 
>   
> 
> <mx:Panel title="My Company(tm)"></mx:Panel> 
> 
>   
> 
> Copy the sign from a webpage, or somewhere else and paste it into the 
> 
> string u use as title. 
> 
>   
> 
> Greetz Erik 
> 
>   
> 
>   
> 
>   
> 
> -----Original Message----- 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On 
> 
> Behalf Of Malcolm 
> 
> Sent: donderdag 23 juni 2005 7:48 
> 
> To: flexcoders@yahoogroups.com 
> 
> Subject: [flexcoders] Trademark Symbol 
> 
>   
> 
> Hi yo all, 
> 
>   
> 
> I am new to the Flex crusade (cf over sql background), so here goes
with 
> 
> my first question. 
> 
>   
> 
> How do I get the proper trademark (TM) symbol in Flex? 
> 
>   
> 
> For example: 
> 
>   
> 
> <mx:Panel title="My ApplicationTM"></mx:Panel> 
> 
>   
> 
> Using anything like: 
> 
>   
> 
> <mx:Panel title="My Application&trade;"></mx:Panel> 
> 
>   
> 
> OR 
> 
>   
> 
> <mx:Panel title="My Application&#8482"></mx:Panel> 
> 
>   
> 
> Doesn't work, and besides this is this not the world of html anymore
:-) 
> 
>   
> 
> The closest I have come is using escape (unicode) characters. For 
> 
> example: 
> 
>   
> 
> <mx:Script> 
> 
>       <![CDATA[         
> 
>       function myTitle() 
> 
>       { 
> 
>             var myTitle:String; 
> 
>             myTitle="My Application\u00ae"; 
> 
>             return myTitle; 
> 
>       }     
> 
>       ]]> 
> 
> </mx:Script> 
> 
>   
> 
> <mx:Panel title="{myTitle}"></mx:Panel> 
> 
>   
> 
> But \u00ae is the registered trademark (R) symbol not (TM). I realize 
> 
> that the TM symbol is not part of the ISO 8859-1 character set
supported 
> 
> by the flash player. 
> 
>   
> 
> Is there anyway to get the trademark symbol in flash? IE Unicode 
> 
> characters higher than 256. 
> 
>   
> 
> Many thanks in advance, 
> 
> Malcolm 
> 
>   
> 
>   
> 
>   
> 
> -- 
> 
> 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 
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
> -- 
> 
> 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 
> 
>   
> 
>     http://groups.yahoo.com/group/flexcoders/ 
> 
>   
> 
>     [EMAIL PROTECTED] 
> 
>   
> 
>     http://docs.yahoo.com/info/terms/ 
> 
>   
> 
>   
> 
>   
> 
>   
> 
>  --
>  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
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


--
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



 




--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to