|
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 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™"/> <mx:Label
text="Macromedia™"/> <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
™ 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----- 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 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™"></mx:Panel> OR <mx:Panel title="My
Application™"></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 Yahoo! Groups Links
|
- RE: [flexcoders] Trademark Symbol Gordon Smith
- Re: [flexcoders] Trademark Symbol Rich Tretola
- Re: [flexcoders] Trademark Symbol Rich Tretola
- Re: [flexcoders] Trademark Symbol Seth Voltz
- RE: [flexcoders] Trademark Symbol Gordon Smith
- Re: [flexcoders] Trademark Symbol Malcolm Barclay

