Skip to main content
November 9, 2006
Question

How to display the copyright string (c) in a text field ?

  • November 9, 2006
  • 1 reply
  • 275 views
Hello,
I'm using a text field in which I want to display the copyright symbol (c) : the letter "c" in a small circle.
I tried this :
texte.text ="&copy BRAND"
but it doesn't work.
Can you help me ?
This topic has been closed for replies.

1 reply

Inspiring
November 9, 2006
texte.text ="\u00A9 BRAND"


November 9, 2006
Thanks Raymond,
Your answer does work when I use the following code :

this.createTextField("my_text1", this.getNextHighestDepth(), 10, 10, 100, 100);
my_text1.text = "\u00A9 brand";

but it does not work when I import the same text from a XML document and want it to be displayed in the box field on the stage, using this code for example (texte is the name of my box instance) :

var menu_xml = new XML();
menu_xml.load("menu_brands.xml");
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function() {
texte.text = this.childNodes[0].childNodes[0].attributes.brand;
}
Actually in this case, the text that is displayed is :
\u00A9 brand
which means that the \u00A9 code seems not recognized as the copyright symbol.

Can you explain this ?
And can you tell where does the code \u00A9 come from ?

Thank you again. Text