-
Anyone know how to use the '&' character without Flash considering it the begining of a new variable?
This is for text being pulled in from a .txt file
I have tried:
/&
\&
//&
\\&
/&/
\&\
\\&\\
//&//
any other ideas?
cheers,
dave sharek
-
ascii code for & is 38 therefore you should be able to use chr(38) in place of &.
-
You need to use the hex code,
%26
for &.
If you ever run into a problem like this, try
trace(escape("Symbol You Want Code For"))
in this case,
trace(escape("&"))
That should do it!
Arctic
-
thanks guys...
julian:
the char(38) didn't work but it was a good idea...
arctic:
the %26 worked...thanks for the reusable code, im sure it will be usefull in the future!
cheers,
dave sharek
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|