Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display unicode character in Actionscript

I have the following unicode for a char:

0x023D2A   

How do I display it using:

textField.text = ???;

I have have the name of the character. Can I reference it by name?

like image 522
Jan Avatar asked Sep 05 '26 11:09

Jan


2 Answers

Try this:

textField.text = String.fromCharCode(0x023D2A)
like image 148
Lars Blåsjö Avatar answered Sep 07 '26 13:09

Lars Blåsjö


textField.text = "Adobe\u00ae" should give you "Adobe®". Replace your Unicode as required. (Note: I don't have Flash with me where I am; I am posting the above untested.)

like image 27
whybird Avatar answered Sep 07 '26 15:09

whybird