A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Using the '&' in dynamic text???????????

  1. #1
    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

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Posts
    519
    ascii code for & is 38 therefore you should be able to use chr(38) in place of &.

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Posts
    433
    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

  4. #4
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center