-
"&" 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
-
is the text field set for html text?
-
Can't Re-Member
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....
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|