I meant to name my variable trademarkSymbol, not copyrightSymbol. But the code works.

 

- Gordon

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
Sent: Thursday, June 23, 2005 10:24 AM
To: [email protected]
Subject: RE: [flexcoders] Trademark Symbol

 

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: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Erik Westra
Sent: Thursday, June 23, 2005 1:47 AM
To: [email protected]
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: [email protected] [mailto:[EMAIL PROTECTED] On

Behalf Of Malcolm

Sent: donderdag 23 juni 2005 7:48

To: [email protected]

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

 

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

 

 

 

 



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





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

Reply via email to