We help IT Professionals succeed at work.

How do I display the English pound symbol in a Flash dynamic text field?

ratzzy
ratzzy asked
on
I have created a movie in Flash CS3 using Actionscript 3.0 that scrolls text in a dynamic text field when the mouse hovers over the up and down buttons.

The text is loaded via an external .txt file, is styled using html and an external style sheet, and I have embedded the necessary font files - Arial, uppercase, lowercase, numerals and punctuation.

When I view the .swf file everything works perfectly (it doesn't matter in which browser) apart from the English pound sign not displaying.

I have tried to display it using '£' and '£' but these don't work either.

I cannot find a solution to this problem anywhere so any help will be much appreciated.

Many thanks.

Comment
Watch Question

CERTIFIED EXPERT

Commented:
try

&#163

CERTIFIED EXPERT

Commented:
docmcali - you are referring to producing the characters from the keyboard not from within a program such as flash
I am not certain if this will work but it might be worth a try: %A3

Check out the Special Characters section at http://www.jgtemplates.com/learn/fp/a002.asp 

and

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14143&sliceId=1
Top Expert 2008

Commented:
Just use the unicode char: \u00A3 inside a string.

txtField.text = "\u00A3";

Here you can find some other unicode codes:

http://unicode.org/charts/PDF/U0080.pdf
Commented:
Hello

Thank you to everyone who replied.  I tried your suggestions but it just displayed the text I'd typed or nothing at all.

However, the problem has been solved.  

Notepad's encoding defaults to ANSI, I changed this to UTF-8 in the drop down box under the Save As field and this allowed the pound sign to display properly.

Many thanks

CERTIFIED EXPERT

Commented:
excellent - well done

Explore More ContentExplore courses, solutions, and other research materials related to this topic.