Groups | Blog | Home
all groups > flash actionscript > february 2007 >

flash actionscript : Externally Loaded Dynamic Text Problem


wilsean
2/6/2007 8:08:26 PM
Hi,

Has anyone encountered problems loading in a % sign as part of a string? For
example I'm loading the following in from a database through an asp page using
sendAndLoad (this is just a snippet of the results):

&AnswerEN1_1=8% &AnswerFR1_1=

The variable AnswerEN1_1 drops the % sign. The value for the variable is just
8. if there's no space between the next variable the value of AnswerEN1_1
becomes 8AnswerFR1_1= removing the & as well

Any ideas, solutions?

Thanks,

Sean



kglad
2/6/2007 8:13:36 PM
abeall
2/6/2007 8:14:32 PM
Flash is seeing % as the start of a URL code--or perhaps ASP is when it serves
it up. Either way, you should be able to avoid it by pruposely URL encoding it.
I don't know any ASP but I'm sure there is a URL encode function somewhere.
Otherewise, the code for % is apparently, %25, according to here:
http://meyerweb.com/eric/tools/dencoder/
AddThis Social Bookmark Button