Web Design Lessons - http://your-tutorials.com
Loading Special Characters In Flash
http://your-tutorials.com/articles/7/1/Loading-Special-Characters-In-Flash/Page1.html
Jacob Shaw
Hey, this is Jacob Shaw and I am the editor of this website. If you have any post, articles, tutorials or other web design information you would like to share please contact me directly.
A little bit about me. I am currently located in Germany and work as a project manager in one pretty big design company. I have a great experience in creating flash websites and I am pretty good aware of the technology :-) Thus the majority of my articles will be about creating small cute and useful things using Adobe Flash.
 
By Jacob Shaw
Published on 01/26/2010
 
How to load such symbols as # $ % & and other in flash if you read dynamic text from external text file.

Sometimes it is an issue to load such character as & if you read dynamic data from text file. The problem is that & is a special character in flash which means beginning of the variable. When flash reads from text file and comes to & it just thinks that current the variable has ended and a new one begins.
Such special characters have to be URL encoded. URL encoding replaces the alphanumeric character with the hexadecimal combination which represents that character.
which means you have to substitute & with %26 ,this should resolve the issue in most of the cases. Below comes the table of URL encoding.

Use this URL Encoding table for special characters:

Character Code Character Code

%26%23169; t %74

%26%23174; u %75

%E2%84%A2 v %76
backspace %08 w %77
tab %09 x %78
linefeed %0A y %79
creturn %0D z %7A
space %20 { %7B
! %21 | %7C
" %22 } %7D
# %23 ~ %7E
$ %24
%A2
% %25
%A3
& %26
%A5
' %27 | %A6
( %28
%A7
) %29
%AB
* %2A
%AC
+ %2B
%AD
, %2C
%B0
- %2D
%B1
. %2E
%B2
/ %2F , %B4
0 %30
%B5
1 %31
%BB
2 %32
%BC
3 %33
%BD
4 %34
%BF
5 %35 A` %C0
6 %36 A %C1
7 %37 A^ %C2
8 %38 A~ %C3
9 %39 A %C4
: %3A A %C5
; %3B
%C6
< %3C C %C7
= %3D E` %C8
> %3E E %C9
? %3F E^ %CA
@ %40 E %CB
A %41 I` %CC
B %42 I %CD
C %43 I^ %CE
D %44 I %CF
E %45
%D0
F %46 N~ %D1
G %47 O` %D2
H %48 O %D3
I %49 O^ %D4
J %4A O~ %D5
K %4B O %D6
L %4C
%D8
M %4D U` %D9
N %4E U %DA
O %4F U^ %DB
P %50 U %DC
Q %51 Y %DD
R %52
%DE
S %53
%DF
T %54 a` %E0
U %55 a %E1
V %56 a^ %E2
W %57 a~ %E3
X %58 a %E4
Y %59 a %E5
Z %5A
%E6
[ %5B c %E7
\ %5C e` %E8
] %5D e %E9
^ %5E e^ %EA
_ %5F e %EB
` %60 i` %EC
a %61 i %ED
b %62 i^ %EE
c %63 i %EF
d %64
%F0
e %65 n~ %F1
f %66 o` %F2
g %67 o %F3
h %68 o^ %F4
i %69 o~ %F5
j %6A o %F6
k %6B
%F7
l %6C
%F8
m %6D u` %F9
n %6E u %FA
o %6F u^ %FB
p %70 u %FC
q %71 y %FD
r %72
%FE
s %73 y %FF
Additional information

The TAB character (URL encoded with %09) is not supported in Flash or HTML. In Flash and HTML, the TAB key is reserved for switching focus between form fields.