Link to home
Start Free TrialLog in
Avatar of ratzzy
ratzzyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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

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.

Avatar of Doc_McAlister
Doc_McAlister

Avatar of Peter Hart
try

&#163

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
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
ASKER CERTIFIED SOLUTION
Avatar of ratzzy
ratzzy
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
excellent - well done