A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: "&" symbol in dynamic text

  1. #1
    Junior Member
    Join Date
    Apr 2003

    "&" symbol in dynamic text

    Hi to all

    I have an text with html tags that loads from a MYSQL db by PHP to a dynamic field in flash. Everything is fine (i've used actionscript for special characters), excecpt for one thing: the "&" does not appear ant it cuts everything from that point on. can anyone help me?

    thank you in advance

  2. #2
    will i ever get it?
    Join Date
    Feb 2004
    is the text field set for html text?

  3. #3
    Can't Re-Member madzigian's Avatar
    Join Date
    Apr 2004
    Boston MA
    you need to use the unicode equivalent of the ampersand character (&) which is %26.

    In flash, the ampersand (&) tells flash that it has reached the end of the text it is supposed to read.... and yes... even with an html enabled textfield. The only way i have ever gotten around it, is using XML or using HTML text and CSS... it has to do with how you have to set up variables when importing text. For example, if you are using LoadVars() to load external text, you start the text file off with &myVar= and then you end it with && to tell flash it has reached the end... Using CSS is different, because your .txt file starts and ends with <body></body> so the ampersands aren't interpreted as the end of the info Flash should read....
    Please DO NOT PM me simply for individual help. Post in the public forums...that's what they are for, and they allow others to benefit as well. - Thx
    OS X 10.3.9 || Flash MX04 Pro
    | del.icio.us || furl || Helpful Source Files || Free Pixel Fonts |

  4. #4
    Junior Member
    Join Date
    Apr 2003
    thank you madzigian!

    it worked! that was rally getting on my nerves.
    thank you

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